Repository navigation
Conversation
This reverts commit 5225f4b.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR cleanly reverts the "assign-to-agent" campaign capability that was added in PR #4415. The revert removes the ability for AI agents to assign GitHub Copilot coding agents to issues through the safe-outputs system.
Key Changes:
- Removes
assign_to_agentsafe output type from schemas and implementation - Removes permissions helper for the elevated permissions required by the GraphQL mutation
- Simplifies Copilot engine token handling (no longer needs workflow-level github-token override)
Reviewed changes
Copilot reviewed 19 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| schemas/agent-output.json | Removes AssignToAgentOutput schema definition |
| pkg/workflow/scripts.go | Removes embed directive and bundling function for assign_to_agent script |
| pkg/workflow/safe_outputs_tools_test.go | Removes assign_to_agent from expected tools list |
| pkg/workflow/safe_outputs.go | Removes assign-to-agent capability checks, prompt generation, and config parsing |
| pkg/workflow/permissions.go | Removes permission helper for actions+contents+issues+PRs write permissions |
| pkg/workflow/js/types/safe-outputs.d.ts | Removes AssignToAgentItem TypeScript interface |
| pkg/workflow/js/types/safe-outputs-config.d.ts | Removes AssignToAgentConfig TypeScript interface |
| pkg/workflow/js/safe_outputs_tools.json | Removes assign_to_agent tool definition from MCP tools |
| pkg/workflow/js/collect_ndjson_output.test.cjs | Removes all test cases for assign_to_agent validation |
| pkg/workflow/js/collect_ndjson_output.cjs | Removes assign_to_agent validation logic and priority ordering |
| pkg/workflow/js/assign_to_agent.cjs | Deletes entire 507-line implementation file |
| pkg/workflow/data/action_pins.json | Updates codeql-action SHA (incidental maintenance) |
| pkg/workflow/copilot_engine.go | Simplifies token handling by removing workflow-level github-token override logic |
| pkg/workflow/compiler_jobs.go | Removes buildAssignToAgentJob call and job registration |
| pkg/workflow/compiler.go | Removes AssignToAgent field from SafeOutputsConfig struct |
| pkg/workflow/assign_to_agent.go | Deletes entire 85-line file with config and job builder |
| pkg/workflow/.github/aw/actions-lock.json | Removes unused actions/checkout@v5 pin |
| pkg/parser/schemas/main_workflow_schema.json | Removes assign-to-agent schema definition from safe-outputs |
| .github/workflows/test-copilot-assign-milestone.lock.yml | Updates compiled workflow removing assign_to_agent references |
| .github/workflows/test-assign-to-agent.md | Deletes test workflow file (51 lines) |
| .github/aw/actions-lock.json | Updates codeql-action SHA (incidental maintenance) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
Author
|
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.
Reverts #4415