chore: add assign-to-agent docs & update ai triage#4675
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive documentation for the new assign-to-agent safe output feature and updates the AI triage campaign workflow to use it. The feature enables GitHub Agentic Workflows to automatically assign GitHub Copilot agents to issues that meet AI-readiness criteria.
Key changes:
- Adds complete documentation for
assign-to-agentsafe output including permission requirements, token configuration, and cross-repository support - Updates AI triage workflow to filter unassigned issues and automatically assign high-readiness issues (score ≥ 9) to @copilot
- Adds new
assign_to_agentjob to compiled workflow with proper GraphQL mutations and fallback handling
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/src/content/docs/reference/safe-outputs.md | Adds comprehensive documentation for the assign-to-agent safe output, including permission requirements, token configuration options, agent output format, supported agents, repository settings, and cross-repository usage |
| .github/workflows/ai-triage-campaign.md | Updates workflow to filter unassigned issues and automatically assign high-readiness issues to @copilot, adds assign-to-agent configuration, and updates permissions to support agent assignment |
| .github/workflows/ai-triage-campaign.lock.yml | Compiled workflow file with new assign_to_agent job implementing GraphQL-based agent assignment with permission error handling and fallback mutations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pelikhan
reviewed
Nov 24, 2025
pelikhan
reviewed
Nov 24, 2025
pelikhan
reviewed
Nov 24, 2025
pelikhan
reviewed
Nov 24, 2025
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.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.
Workflow Updates
AI-Readiness Score ≥ 9, the workflow outputs anassign_to_agentsafe-output item to immediately assign the issue to@copilot.safe-outputssection withassign-to-agent, detailing its usage, required workflow permissions, supported agents, token requirements, and cross-repository assignment procedures.Documentation Additions
assign-to-agentsafe output, including usage examples and token requirements.Token Handling Improvements
assign_to_agent.gonow prioritizes theGH_AW_AGENT_TOKENsecret, which requires specific write permissions, ensuring the correct token is used for agent assignment operations.assign_to_agent.cjsis simplified to only support the Copilot agent, removing references to other agents for now.