Skip to content

Suggested test: copilot/assign-to-agent #3095

Description

@github-actions

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 ·

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions