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

Open Beginner friendly
#5,447 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
github-actions, markdown
Domain
ci-cd, testing

Research direction

Start by reading test-copilot-close-issue.md and use it as the model for test-copilot-close-issue-duplicate-of.md. Configure the workflow_dispatch trigger, copilot engine, close-issue safe output, and duplicate_of scenario with the existing githubnext/gh-aw-test fixture issues. Done means the test verifies the issue is closed with a duplicate state reason and can use a samples block for deterministic runs.

Written by the indexing model from the issue text.

Description

suggested new test

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 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 ·

Dominant language
Shell
Stars
8
Forks
5
Avg merge
18h 32m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from githubnext/gh-aw-test

All issues in githubnext/gh-aw-test

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.