Skip to content

Commit 8fb4f33

Browse files
BagToadCopilot
andcommitted
Fix triage-pull-requests skipping PRs that open as draft
When a PR is opened as draft and later marked ready for review, the check-requirements job's if filter excluded the ready_for_review action, so the screening workflow never ran and unmet-requirements was never applied. Add ready_for_review to the action filter so screening runs when a draft PR transitions to requesting review. Companion fix in desktop/gh-cli-and-desktop-shared-workflows updates the called workflow's own filters to handle ready_for_review consistently. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7cf93e7 commit 8fb4f33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/triage-pull-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
check-requirements:
3030
if: >-
3131
github.event_name == 'pull_request_target' &&
32-
(github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'edited')
32+
(github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'edited' || github.event.action == 'ready_for_review')
3333
uses: desktop/gh-cli-and-desktop-shared-workflows/.github/workflows/triage-pr-requirements.yml@main
3434
with:
3535
enable_pr_screening: true

0 commit comments

Comments
 (0)