diff --git a/.github/workflows/command-dispatch.yaml b/.github/workflows/command-dispatch.yaml new file mode 100644 index 0000000..538de2b --- /dev/null +++ b/.github/workflows/command-dispatch.yaml @@ -0,0 +1,21 @@ +# Allows for the definition of PR and Issue /commands +name: Slash Command Dispatcher + +on: + issue_comment: + types: + - created + +jobs: + launcher: + runs-on: ubuntu-latest + steps: + - name: Command Dispatch + uses: peter-evans/slash-command-dispatch@v2 + with: + token: ${{ secrets.JF_BOT_TOKEN }} + permission: write + issue-type: pull-request + commands: |- + rebase + update-prep diff --git a/.github/workflows/command-rebase.yaml b/.github/workflows/command-rebase.yaml new file mode 100644 index 0000000..b2faf80 --- /dev/null +++ b/.github/workflows/command-rebase.yaml @@ -0,0 +1,34 @@ +name: PR Rebase Command + +on: + repository_dispatch: + types: + - rebase-command + +jobs: + rebase: + runs-on: ubuntu-latest + steps: + - name: Rebase PR + uses: peter-evans/rebase@v1 + id: rebase + with: + head: ${{ github.event.client_payload.pull_request.head.label }} + + - name: Add Success Reaction + if: ${{ steps.rebase.outputs.rebased-count == 1 }} + uses: peter-evans/create-or-update-comment@v1 + with: + token: ${{ secrets.JF_BOT_TOKEN }} + repository: ${{ github.event.client_payload.github.payload.repository.full_name }} + comment-id: ${{ github.event.client_payload.github.payload.comment.id }} + reaction-type: hooray + + - name: Add Failure Reaction + if: ${{ steps.rebase.outputs.rebased-count == 0 || failure() }} + uses: peter-evans/create-or-update-comment@v1 + with: + token: ${{ secrets.JF_BOT_TOKEN }} + repository: ${{ github.event.client_payload.github.payload.repository.full_name }} + comment-id: ${{ github.event.client_payload.github.payload.comment.id }} + reaction-type: confused, -1 diff --git a/.gitignore b/.gitignore index 27d4086..20a039d 100644 --- a/.gitignore +++ b/.gitignore @@ -228,3 +228,5 @@ pip-log.txt #Mr Developer .mr.developer.cfg + +.idea diff --git a/jellyfin.ruleset b/jellyfin.ruleset new file mode 100644 index 0000000..8af791c --- /dev/null +++ b/jellyfin.ruleset @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +