Skip to content

Commit c6461d6

Browse files
authored
Add GitHub action to assign reviewers on PR created by Dependabot (#285)
1 parent 14d0d3e commit c6461d6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Assign reviewer to dependabot PRs
2+
# This action assigns the ScalarDL team as reviewers when Dependabot opens a pull request.
3+
4+
on:
5+
pull_request:
6+
types: [opened]
7+
8+
jobs:
9+
assign-reviewer:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
13+
steps:
14+
- name: Assign ScalarDL team as reviewers for Dependabot PRs
15+
env:
16+
GH_TOKEN: ${{ secrets.ASSIGN_PR_REVIEWERS_PAT }}
17+
PR_NUMBER: ${{ github.event.pull_request.number }}
18+
REPOSITORY: ${{ github.repository }}
19+
run: gh pr edit $PR_NUMBER --repo $REPOSITORY --add-reviewer scalar-labs/scalardl

0 commit comments

Comments
 (0)