Add skip-if-no-match field support as inverse of skip-if-match #8475
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds
skip-if-no-matchfield to theon:section that skips workflow execution when a GitHub search query returns no matches (or fewer than minimum required). This is the inverse ofskip-if-matchwhich skips when matches exist.Changes
Schema & Types
skip-if-no-matchto workflow schema supporting both string format (impliesmin: 1) and object format with explicitminthresholdSkipIfNoMatchConfigstruct andSkipIfNoMatchfield toWorkflowDataCheckSkipIfNoMatchStepID,SkipNoMatchCheckOkOutputCompiler Integration
check_skip_if_no_match.cjshandler that validates minimum match count via GitHub search APIbuildPreActivationJob()to generate skip-if-no-match check step when configuredskip_no_match_check_okoutputstop_after.goDocumentation
Applied to issue-monster Workflow
skip-if-no-match: "is:issue is:open"to the issue-monster workflow to prevent unnecessary runs when there are no open issues to processUsage
Testing
Added comprehensive test suite covering string format, object format, combined checks, and edge cases. All tests passing.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.