Repository navigation
fix(health-check): send Copilot actor ID as an array - #93
Merged
Merged
Conversation
`-F actorIds="[\"…\"]"` made gh send the literal string `["BOT_…"]`, so addAssigneesToAssignable failed with NOT_FOUND even with a valid token. Use gh's `actorIds[]=` syntax and send the GraphQL-Features header that GitHub requires for Copilot assignment. Correct the PAT permissions in the step comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Fixes the "Ensure Copilot is assigned" step in
health-check.yml, which failed to assign incident #92 even withCOPILOT_ASSIGN_TOKENset:-F actorIds="[\"$copilot_id\"]"madeghsend the literal string["BOT_…"], not a JSON array. It now uses gh's array syntax:-f "actorIds[]=$copilot_id".GraphQL-Features: issues_copilot_assignment_api_support,coding_agent_model_selection, which GitHub's docs require for Copilot assignment.Checks
actionlintandprettier --checkpass.-f "ids[]=<issue node id>"and the header returns the issue, which confirms the array encoding and the header are accepted. The assign mutation itself has not run yet.For the reviewer
Scheduled runs use the workflow from
main, so this only takes effect after merge. After merging, rungh workflow run health-check.ymlwhile #92 is open. The step retries assignment on the existing issue.Not in this PR: the Incident policy section that
INCIDENT_TASK.mdpoints to was dropped fromAGENTS.mdin #91.🤖 Generated with Claude Code