Auto-assign @copilot to workflow sync issues when agent token available#11054
Closed
Auto-assign @copilot to workflow sync issues when agent token available#11054
Conversation
- Update maintenance_workflow.go to pass GH_AW_AGENT_TOKEN secret - Add logic to check_workflow_recompile_needed.cjs to assign copilot when token is available - Regenerate agentics-maintenance.yml with the new configuration - Use existing assign_agent_helpers.cjs for assignment logic Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update agentic maintenance workflow for issue creation
Auto-assign @copilot to workflow sync issues when agent token available
Jan 21, 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 agentic maintenance workflow creates issues when workflows are out of sync but doesn't assign them to anyone. This adds automatic @copilot assignment when
GH_AW_AGENT_TOKENsecret is configured.Changes
Maintenance workflow generator (
pkg/workflow/maintenance_workflow.go): PassGH_AW_AGENT_TOKENas env var and github-token parameter with fallback toGITHUB_TOKENWorkflow sync checker (
actions/setup/js/check_workflow_recompile_needed.cjs): After issue creation, check for token availability and assign copilot using existingassign_agent_helpers.cjsfunctionsGraceful degradation: When token unavailable, issue creation proceeds normally without assignment
Example
Assignment failures log warnings without breaking the workflow.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.