From 54940d282995f3527993f473e885b029a6989590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Fri, 3 Sep 2021 17:40:05 +0200 Subject: [PATCH] Add rebase command --- .github/workflows/commands.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/commands.yml diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml new file mode 100644 index 000000000..bf9081443 --- /dev/null +++ b/.github/workflows/commands.yml @@ -0,0 +1,28 @@ +name: Commands +on: + issue_comment: + types: + - created + - edited + +jobs: + rebase: + name: Rebase + if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@jellyfin-bot rebase') && github.event.comment.author_association == 'MEMBER' + runs-on: ubuntu-latest + steps: + - name: Notify as seen + uses: peter-evans/create-or-update-comment@v1.4.5 + with: + token: ${{ secrets.JF_BOT_TOKEN }} + comment-id: ${{ github.event.comment.id }} + reactions: '+1' + - name: Checkout the latest code + uses: actions/checkout@v2.3.4 + with: + token: ${{ secrets.JF_BOT_TOKEN }} + fetch-depth: 0 + - name: Automatic Rebase + uses: cirrus-actions/rebase@1.5 + env: + GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}