Refactor issue creation logic and add missing secret handling#10394
Closed
Refactor issue creation logic and add missing secret handling#10394
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor issue creation for missing secrets validation
Refactor issue creation logic and add missing secret handling
Jan 17, 2026
Copilot stopped work on behalf of
pelikhan due to an error
January 17, 2026 01:36
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.
When secret validation fails in the agent job, workflows now create specific tracking issues similar to agent failure issues. This provides clear, actionable feedback about missing secrets rather than generic failure notifications.
Changes
Extracted Reusable Issue Management (
actions/setup/js/issue_helpers.cjs)ensureParentIssue()- Find or create parent tracking issuelinkSubIssue()- Link via GraphQL APIfindExistingIssue(),addIssueComment(),createIssue()- Common operationsRefactored
handle_agent_failure.cjsUses extracted helpers instead of duplicated code.
Added Missing Secret Handler (
actions/setup/js/handle_missing_secret.cjs)Reads
/tmp/gh-aw/missing_secret_info.jsoncreated byvalidate_multi_secret.shon failure. Creates/updates issues with:Updated
validate_multi_secret.shOn validation failure, writes JSON file with secret metadata:
{ "missing_secrets": ["SECRET_1", "SECRET_2"], "engine_name": "Claude Code", "docs_url": "https://docs.anthropic.com" }Integrated Into Conclusion Job (
pkg/workflow/notify_comment.go)Adds
handle_missing_secretstep beforehandle_agent_failurein conclusion job. Runs only when/tmp/gh-aw/missing_secret_info.jsonexists.Added Markdown Templates (
actions/setup/md/)missing_secret_issue.md- Initial issue templatemissing_secret_comment.md- Follow-up comment templateBoth aligned with existing template style.
Architecture
All 126 workflows recompiled with new functionality.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.