Draft
Fix lint job failure on push events due to missing PR#1
Conversation
The lint job was failing when triggered by a push to main/master because the Find Pull Request step had failIfNotFound: true. When no PR exists for the push event, this caused the entire lint job to fail. Fix: - Set failIfNotFound: false so the step succeeds when no PR is found - Make Get labels step conditional on PR number being available
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job lint tool-list (3.11)
Fix lint job failure on push events due to missing PR
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The
lintjob inpr.yamlruns on both PR and push-to-main events, butFind Pull RequesthadfailIfNotFound: true— causing the entire job to fail on push events where no associated PR exists.Changes
failIfNotFound: falseon theFind Pull Requeststep so the step succeeds when no PR is foundGet labels of the PRstep (if: steps.find-pr.outputs.number != '') to skip the labels fetch when no PR number is availableWhen no PR is found,
env.LABELSstays empty, the label-based skip logic inConditionally skip URL/version linterevaluates to false, and linting proceeds normally — correct behavior for push events.