From fd74bc712f57a4e5ae92904ba90cbdea6bbf3507 Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Mon, 18 May 2026 11:51:37 +0200 Subject: [PATCH] fix(ci): restrict PR checklist by author The existing check reacts to whoever performs an action, so pushing a commit to a PR opened by the konflux bot will trigger the checklist validation. This is not a huge deal, but since MintMaker PRs have predefined descriptions, we should never attempt to validate them. With this change we restrict the validation to PRs that are not opened by konflux bot. For an example of a MintMaker PR running the checklist validation test after a push from another user see #679. --- .github/workflows/pr-checklist.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checklist.yml b/.github/workflows/pr-checklist.yml index 01eacbc4..8866db47 100644 --- a/.github/workflows/pr-checklist.yml +++ b/.github/workflows/pr-checklist.yml @@ -15,7 +15,7 @@ jobs: if: github.event.pull_request.draft == false steps: - name: Verify PR Checklist is Complete - if: github.actor != 'red-hat-konflux[bot]' + if: github.event.pull_request.user.login != 'red-hat-konflux[bot]' env: PR_BODY: ${{ github.event.pull_request.body }} run: | @@ -30,6 +30,6 @@ jobs: fi - name: Skip check for MintMaker - if: github.actor == 'red-hat-konflux[bot]' + if: github.event.pull_request.user.login == 'red-hat-konflux[bot]' run: | echo "MintMaker PRs are exempted from this check"