ci(sync-docs): create 'automated' label before opening sync PR - #21
Draft
Sbussiso wants to merge 1 commit into
Draft
ci(sync-docs): create 'automated' label before opening sync PR#21Sbussiso wants to merge 1 commit into
Sbussiso wants to merge 1 commit into
Conversation
The Sync Docs workflow run #8 failed because it tried to add the 'automated' label to the auto-sync PR, but that label does not exist in the repo (only the default GitHub labels are present). Fix: ensure the label exists before PR creation. gh label create is idempotent here (guarded with 2>/dev/null || true so a subsequent run that finds the existing label won't fail). Closes CI failure on commit a77ae36.
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.
Root cause
The
Sync Docsworkflow run #8 (run 28716053829) failed at the Open or update sync PR step:The workflow tries to label its auto-sync PR with
automated, but that label does not exist in this repo — only the default GitHub labels are present (bug,documentation,enhancement, etc.).Fix
Ensure the
automatedlabel exists before opening the PR:The
2>/dev/null || truemakes the create idempotent and non-fatal — if the label already exists (e.g. on subsequent runs) the line is a no-op, and PR creation still proceeds.Verification
bug,documentation,duplicate,enhancement,good first issue,help wanted,invalid,question,wontfix— noautomated.Sync Docsrun will create the label and open the PR cleanly.Notes
Opened by Hermes coder as part of automated CI triage of run #28716053829. Draft until reviewed/merged.