mirror of
https://github.com/r3bo0tbx1/tor-guard-relay.git
synced 2026-04-06 00:32:04 +02:00
👷 feat(ci): auto-assign reviewer to Dependabot PRs
This commit is contained in:
20
.github/workflows/assign.yml
vendored
Normal file
20
.github/workflows/assign.yml
vendored
Normal 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']
|
||||
});
|
||||
Reference in New Issue
Block a user