githubnext / githubnext/gh-aw-test
Suggested test: copilot/close-issue-intents
- Dominant language
- Shell
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
Link to the gh-aw PR: github/gh-aw#46850 — fix: nest issue-intent metadata correctly in close_issue and assign_to_agent payloads
This bug fix changed how intent metadata (rationale, confidence, suggest) is nested in close_issue payloads — from top-level spread (silently ignored by GitHub API) to nested inside the state object. There is currently no regression test exercising close_issue under issue-intents mode.
## Proposed test
- **Workflow file**: `test-copilot-close-issue-intents.md`
- **Trigger**: `workflow_dispatch`
- **Engine**: copilot
- **Safe output**: `close-issue`
- **Variant**: standard
## Minimal test prompt sketch
Create a test issue in the repository, then close it using close_issue with issue-intents: true enabled. The agent should supply rationale and confidence in the payload. Verify the issue is closed and intent metadata is persisted (not silently dropped).
## New fixtures or secrets needed
None. Uses existing githubnext/gh-aw-test repository. Requires a pre-existing open issue to close, or create-then-close pattern using two safe outputs.
## Notes
The existing test-copilot-close-issue.md does not use features.issue-intents: true, so it does not exercise the fixed code path. The test-copilot-issue-intents.md only covers create-issue. This is a direct regression guard for the #46850 fix.
> [!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:
>
> ```yaml
> network:
> allowed:
> - defaults
> - "awmgmcpg"
> ```
>
> See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information.
>
>
> Generated by [🔍 Suggest New E2E Tests](https://github.com/githubnext/gh-aw-test/actions/runs/29817660169) · 27.7 AIC · ⌖ 5.71 AIC · ⊞ 5.7K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-test%2Fsuggest-new-e2e-tests%22&type=issues)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the proposed test in test-copilot-close-issue-intents.md and compare it with test-copilot-close-issue.md and test-copilot-issue-intents.md. Run it through workflow_dispatch using the existing githubnext/gh-aw-test setup, then verify that close_issue closes the issue and preserves the rationale and confidence metadata when issue-intents is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100