You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link to the gh-aw PR: github/gh-aw#43152 — feat(close-issue): add duplicate_of for native GitHub duplicate marking
The close-issue safe output gained a new optional duplicate_of field that calls the GitHub markAsDuplicate GraphQL mutation to create the native timeline relationship between two issues. There is no E2E test covering this new field.
The workflow is triggered via workflow_dispatch. The agent is given a fixed issue number (a permanent fixture issue in githubnext/gh-aw-test, e.g. issue #1) and instructed to close it as a duplicate of another fixed issue (e.g. issue #2), using state_reason: duplicate and duplicate_of: 2. The test asserts the issue was closed with a duplicate state reason.
New fixtures or secrets needed
None. The test can reuse the existing permanently-closed fixture issues in githubnext/gh-aw-test. A samples: block can be added to avoid real engine calls in deterministic mode.
The markAsDuplicate mutation failure path is non-fatal per the PR — the test only needs to verify happy-path emission of duplicate_of in the safe output.
Should eventually be added for claude and codex variants as well, but copilot is sufficient for initial coverage.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Motivation
Link to the gh-aw PR: github/gh-aw#43152 — feat(close-issue): add
duplicate_offor native GitHub duplicate markingThe
close-issuesafe output gained a new optionalduplicate_offield that calls the GitHubmarkAsDuplicateGraphQL mutation to create the native timeline relationship between two issues. There is no E2E test covering this new field.Proposed test
test-copilot-close-issue-duplicate-of.mdworkflow_dispatchclose-issue(withduplicate_offield)Minimal test prompt sketch
The workflow is triggered via
workflow_dispatch. The agent is given a fixed issue number (a permanent fixture issue ingithubnext/gh-aw-test, e.g. issue #1) and instructed to close it as a duplicate of another fixed issue (e.g. issue #2), usingstate_reason: duplicateandduplicate_of: 2. The test asserts the issue was closed with aduplicatestate reason.New fixtures or secrets needed
None. The test can reuse the existing permanently-closed fixture issues in
githubnext/gh-aw-test. Asamples:block can be added to avoid real engine calls in deterministic mode.Notes
test-copilot-close-issue.mdonly exercises plain close (noduplicate_of). This test covers the new field introduced in feat(close-issue): addduplicate_offor native GitHub duplicate marking github/gh-aw#43152.markAsDuplicatemutation failure path is non-fatal per the PR — the test only needs to verify happy-path emission ofduplicate_ofin the safe output.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.