Motivation
Link to the gh-aw PR: github/gh-aw#40669 — fix: migrate assignAgentToIssue to REST, retain GraphQL fallbacks in lookup helpers
The assign-to-agent safe-output handler was migrated from the GraphQL replaceActorsForAssignable mutation to POST /agents/repos/{owner}/{repo}/tasks. A related fix (github/gh-aw#40716) extended ignore-if-error to also suppress agent-availability errors. Neither change has E2E coverage in gh-aw-test: there is no test-copilot-assign-to-agent.md.
Proposed test
- Workflow file:
test-copilot-assign-to-agent.md
- Trigger:
workflow_dispatch
- Engine: copilot
- Safe output:
assign-to-agent
- Variant: standard
Minimal test prompt sketch
Have the agent create a new issue (with temporary_id: aw_agent_issue) and then call assign-to-agent referencing that issue via issue_number: '#aw_agent_issue'. Include ignore-if-error: true on the assign-to-agent config so the test passes even when the Copilot coding agent is not available in the repository, keeping the test non-flaky.
New fixtures or secrets needed
For a meaningful positive assertion the Copilot coding agent must be enabled for githubnext/gh-aw-test. With ignore-if-error: true no new fixture is strictly required (the safe output is silently skipped on unavailability), but the test then only validates that the workflow does not crash — not that assignment succeeds. Confirm whether the agent is available before deciding on config.
Notes
test-copilot-assign-to-user.md covers the assign-to-user safe output. This test covers the distinct assign-to-agent path. Eventually a claude and codex variant may be worth adding.
Generated by 🔍 Suggest New E2E Tests · ◷
Motivation
Link to the gh-aw PR: github/gh-aw#40669 — fix: migrate
assignAgentToIssueto REST, retain GraphQL fallbacks in lookup helpersThe
assign-to-agentsafe-output handler was migrated from the GraphQLreplaceActorsForAssignablemutation toPOST /agents/repos/{owner}/{repo}/tasks. A related fix (github/gh-aw#40716) extendedignore-if-errorto also suppress agent-availability errors. Neither change has E2E coverage in gh-aw-test: there is notest-copilot-assign-to-agent.md.Proposed test
test-copilot-assign-to-agent.mdworkflow_dispatchassign-to-agentMinimal test prompt sketch
Have the agent create a new issue (with
temporary_id: aw_agent_issue) and then callassign-to-agentreferencing that issue viaissue_number: '#aw_agent_issue'. Includeignore-if-error: trueon theassign-to-agentconfig so the test passes even when the Copilot coding agent is not available in the repository, keeping the test non-flaky.New fixtures or secrets needed
For a meaningful positive assertion the Copilot coding agent must be enabled for
githubnext/gh-aw-test. Withignore-if-error: trueno new fixture is strictly required (the safe output is silently skipped on unavailability), but the test then only validates that the workflow does not crash — not that assignment succeeds. Confirm whether the agent is available before deciding on config.Notes
test-copilot-assign-to-user.mdcovers theassign-to-usersafe output. This test covers the distinctassign-to-agentpath. Eventually aclaudeandcodexvariant may be worth adding.