ci: check for new maintainers on updates
We want to ping maintainers whenever files are affected. Right now it requires changing a PR to a draft and reopening, but we should be more clever and request the review whenever the file is updated. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
7044c3eced
commit
7582cbfabc
1 changed files with 5 additions and 2 deletions
7
.github/workflows/tag-maintainers.yml
vendored
7
.github/workflows/tag-maintainers.yml
vendored
|
|
@ -1,14 +1,17 @@
|
|||
name: Tag Module Maintainers
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ready_for_review]
|
||||
types: [opened, ready_for_review, reopened, synchronize]
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
jobs:
|
||||
tag-maintainers:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'nix-community'
|
||||
if: |
|
||||
github.repository_owner == 'nix-community' &&
|
||||
github.event.pull_request.draft == false &&
|
||||
github.event.pull_request.state == 'open'
|
||||
steps:
|
||||
- name: Create GitHub App token
|
||||
uses: actions/create-github-app-token@v2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue