Skip to content

Revert "feat: add campaign capability assign-to-agent" - #4679

Closed
mnkiefer wants to merge 1 commit into
mainfrom
revert-4415-assign-to-agent
Closed

mnkiefer wants to merge 1 commit into
mainfrom
revert-4415-assign-to-agent

Conversation

@mnkiefer

Copy link
Copy Markdown
Collaborator

Reverts #4415

Copilot AI review requested due to automatic review settings November 24, 2025 15:16

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

@mnkiefer

Copy link
Copy Markdown
Collaborator Author
  • No longer needed

@mnkiefer mnkiefer closed this Nov 24, 2025
@mnkiefer mnkiefer self-assigned this Nov 27, 2025
@pelikhan
pelikhan deleted the revert-4415-assign-to-agent branch December 1, 2025 03:40
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.

2 participants