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:
Austin Horstman 2025-07-03 16:37:17 -05:00
parent 7044c3eced
commit 7582cbfabc

View file

@ -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