Improve error handling in create-labels workflow#30
Merged
Chris-Wolfgang merged 2 commits intogithub-folder-changesfrom Dec 18, 2025
Merged
Improve error handling in create-labels workflow#30Chris-Wolfgang merged 2 commits intogithub-folder-changesfrom
Chris-Wolfgang merged 2 commits intogithub-folder-changesfrom
Conversation
- Check error status and only ignore 'already_exists' errors (422) - Log error messages for authentication, rate limiting, and API issues - Re-throw non-already-exists errors to fail the workflow properly Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] WIP Address feedback on .github folder updates
Improve error handling in create-labels workflow
Dec 18, 2025
Chris-Wolfgang
approved these changes
Dec 18, 2025
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.
Description
Enhanced error handling in the
create-labels.yamlworkflow to distinguish between expected label-already-exists scenarios and actual failures (authentication, rate limiting, API errors).Changes:
already_existscode before ignoringBefore:
After:
Type of change
How Has This Been Tested?
Checklist
Screenshots (if applicable)
N/A - GitHub Actions workflow change
Additional context
Addresses feedback from PR #27 review comment about silent error handling masking real issues.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.