From 7582cbfabce2ff1626083f1c73a2e3c74ee4cf40 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 3 Jul 2025 16:37:17 -0500 Subject: [PATCH] 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 --- .github/workflows/tag-maintainers.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tag-maintainers.yml b/.github/workflows/tag-maintainers.yml index 6dd903de..9f75ab9b 100644 --- a/.github/workflows/tag-maintainers.yml +++ b/.github/workflows/tag-maintainers.yml @@ -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