👷 feat(ci): auto-assign reviewer to Dependabot PRs

This commit is contained in:
rE-Bo0t.bx1
2026-02-05 17:15:48 +05:30
parent 899ed60af0
commit 0b20741978

20
.github/workflows/assign.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: 👤🎟️
on:
pull_request:
types: [opened]
jobs:
assign:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Assign reviewer
uses: actions/github-script@v7
with:
script: |
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
reviewers: ['r3bo0tbx1']
});