Ignore link_sub_issue failure when already linked to same parent#27735
Ignore link_sub_issue failure when already linked to same parent#27735
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/874f54ec-99f8-4a3f-b9fa-fe1be024d870 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/874f54ec-99f8-4a3f-b9fa-fe1be024d870 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/874f54ec-99f8-4a3f-b9fa-fe1be024d870 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
This reverts commit 46cea52. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adjusts link_sub_issue handling so that attempting to link a sub-issue that is already linked to the same parent is treated as a successful no-op rather than a failure.
Changes:
- Update
link_sub_issueto return{ success: true, skipped: true }when the sub-issue is already linked to the requested parent. - Refine unit tests to distinguish “already linked to different parent” (failure) vs “already linked to same parent” (success + skipped).
Show a summary per file
| File | Description |
|---|---|
| actions/setup/js/link_sub_issue.cjs | Returns success for the “already linked to same parent” case while preserving failure for “different parent” case. |
| actions/setup/js/link_sub_issue.test.cjs | Adds coverage for same-parent no-op behavior and clarifies the different-parent failure test. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
🧪 Test Quality Sentinel ReportTest Quality Score: 90/100✅ Excellent test quality
Test Classification Details
Test Analysis✅
|
There was a problem hiding this comment.
✅ Test Quality Sentinel: 90/100. Test quality is excellent — 0% of new tests are implementation tests (threshold: 30%). The single new test directly verifies the behavioral contract introduced by this PR: idempotent sub-issue linking when already linked to the correct parent.
link_sub_issuehandler behavior causing failure on already-linked sub-issueslink_sub_issuelogic to treat "already linked to the same parent" as a successful no-oplink_sub_issuemake agent-finish) before commitSmoke CI scheduled run completed: https://github.com/github/gh-aw/actions/runs/24755774748