Skip to content

Commit fd74bc7

Browse files
committed
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.
1 parent 49c854f commit fd74bc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/pr-checklist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: github.event.pull_request.draft == false
1616
steps:
1717
- name: Verify PR Checklist is Complete
18-
if: github.actor != 'red-hat-konflux[bot]'
18+
if: github.event.pull_request.user.login != 'red-hat-konflux[bot]'
1919
env:
2020
PR_BODY: ${{ github.event.pull_request.body }}
2121
run: |
@@ -30,6 +30,6 @@ jobs:
3030
fi
3131
3232
- name: Skip check for MintMaker
33-
if: github.actor == 'red-hat-konflux[bot]'
33+
if: github.event.pull_request.user.login == 'red-hat-konflux[bot]'
3434
run: |
3535
echo "MintMaker PRs are exempted from this check"

0 commit comments

Comments
 (0)