Skip to content

chore: add assign-to-agent docs & update ai triage#4675

Merged
mnkiefer merged 12 commits into
mainfrom
update-ai-triage
Nov 24, 2025
Merged

chore: add assign-to-agent docs & update ai triage#4675
mnkiefer merged 12 commits into
mainfrom
update-ai-triage

Conversation

@mnkiefer

@mnkiefer mnkiefer commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator

Workflow Updates

  • Updated AI Triage Campaign workflow to filter out issues that already have assignees, ensuring only unassigned issues are processed and routed to the project board.
  • For unassigned issues with AI-Readiness Score ≥ 9, the workflow outputs an assign_to_agent safe-output item to immediately assign the issue to @copilot.
  • Workflow permissions have been updated to require write access for actions, contents, issues, and pull-requests to support agent assignment.
  • Update docs in safe-outputs section with assign-to-agent, detailing its usage, required workflow permissions, supported agents, token requirements, and cross-repository assignment procedures.

Documentation Additions

  • Adds a detailed section for the new assign-to-agent safe output, including usage examples and token requirements.

Token Handling Improvements

  • The agent assignment workflow in assign_to_agent.go now prioritizes the GH_AW_AGENT_TOKEN secret, which requires specific write permissions, ensuring the correct token is used for agent assignment operations.
  • The agent mapping and assignment logic in assign_to_agent.cjs is simplified to only support the Copilot agent, removing references to other agents for now.

Copilot AI review requested due to automatic review settings November 24, 2025 14:41
@mnkiefer mnkiefer self-assigned this Nov 24, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-agent safe 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_agent job 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.

Comment thread .github/workflows/ai-triage-campaign.md Outdated
Comment thread docs/src/content/docs/reference/safe-outputs.md Outdated
Comment thread docs/src/content/docs/reference/safe-outputs.md Outdated
@mnkiefer mnkiefer requested a review from pelikhan November 24, 2025 18:11
Comment thread pkg/workflow/assign_to_agent.go
Comment thread docs/src/content/docs/reference/safe-outputs.md Outdated
Comment thread docs/src/content/docs/reference/safe-outputs.md Outdated
Comment thread pkg/workflow/assign_to_agent.go Outdated
mnkiefer and others added 2 commits November 24, 2025 19:16
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
@mnkiefer mnkiefer merged commit 23f9125 into main Nov 24, 2025
58 checks passed
@mnkiefer mnkiefer deleted the update-ai-triage branch November 24, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants