-
Notifications
You must be signed in to change notification settings - Fork 2
24 lines (24 loc) · 1015 Bytes
/
gerald-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Gerald - Notify and Request Reviewers On Pull Request
'on':
pull_request:
# ready_for_review isn't included by default, so we add it
# here to have this workflow re-run when a pr is converted
# from "draft" to "not draft".
# We also add "edited" to re-check when the base branch
# is changed.
types: [opened, synchronize, reopened, ready_for_review, edited]
# When a new revision is pushed to a PR, cancel all in-progress CI runs for that
# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
gerald:
# Don't re-run if only the title or body changes
if: github.event.action != 'edited' || github.event.changes.base != null
runs-on: ubuntu-latest
steps:
- uses: Khan/actions@gerald-pr-v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
admin-token: ${{ secrets.KHAN_ACTIONS_BOT_TOKEN }}