Skip to content

Commit 63520eb

Browse files
authored
Add GitHub action to assign reviewers on PR created by Dependabot (#2694)
1 parent f713495 commit 63520eb

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Assign reviewer to dependabot PRs
2+
# This action assigns the ScalarDB 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+
permissions:
14+
pull-requests: write
15+
16+
steps:
17+
- name: Assign ScalarDB team as reviewers for Dependabot PRs
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
PR_NUMBER: ${{ github.event.pull_request.number }}
21+
REPOSITORY: ${{ github.repository }}
22+
run: gh pr edit $PR_NUMBER --repo $REPOSITORY --add-reviewer scalar-labs/scalardb
23+

0 commit comments

Comments
 (0)