2021-09-03 08:40:05 -07:00
|
|
|
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
|
2023-04-05 05:05:16 -07:00
|
|
|
uses: peter-evans/create-or-update-comment@3383acd359705b10cb1eeef05c0e88c056ea4666 # v3.0.0
|
2021-09-03 08:40:05 -07:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.JF_BOT_TOKEN }}
|
|
|
|
comment-id: ${{ github.event.comment.id }}
|
|
|
|
reactions: '+1'
|
|
|
|
- name: Checkout the latest code
|
2023-04-19 05:58:03 -07:00
|
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2021-09-03 08:40:05 -07:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.JF_BOT_TOKEN }}
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Automatic Rebase
|
2023-01-04 20:06:15 -07:00
|
|
|
uses: cirrus-actions/rebase@b87d48154a87a85666003575337e27b8cd65f691 # 1.8
|
2021-09-03 08:40:05 -07:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
|
2023-04-17 06:03:16 -07:00
|
|
|
- name: Comment on failure
|
|
|
|
if: failure()
|
|
|
|
uses: peter-evans/create-or-update-comment@3383acd359705b10cb1eeef05c0e88c056ea4666 # v3.0.0
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.JF_BOT_TOKEN }}
|
2023-04-17 10:23:45 -07:00
|
|
|
issue-number: ${{ github.event.issue.number }}
|
2023-04-17 06:03:16 -07:00
|
|
|
body: |
|
2023-04-17 08:03:52 -07:00
|
|
|
I'm sorry @${{ github.event.comment.user.login }}, I'm afraid I can't do that.
|