Skip to content

Suggested test: copilot/close-issue-duplicate-of #5447

Description

@github-actions

Motivation

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.

Proposed test

  • Workflow file: test-copilot-close-issue-duplicate-of.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: close-issue (with duplicate_of field)
  • Variant: standard

Minimal test prompt sketch

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.

Notes

  • Existing test-copilot-close-issue.md only exercises plain close (no duplicate_of). This test covers the new field introduced in feat(close-issue): add duplicate_of for native GitHub duplicate marking github/gh-aw#43152.
  • 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:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by 🔍 Suggest New E2E Tests · 66.9 AIC · ⌖ 6.82 AIC · ⊞ 5.6K ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions