Registry Mirror
Skip to content

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Functions Removed

Function File
GroupRunsByWorkflow pkg/cli/health_metrics.go

Tests Removed

  • TestGroupRunsByWorkflow (pkg/cli/health_metrics_test.go)
  • TestSpec_PublicAPI_GroupRunsByWorkflow (pkg/cli/spec_test.go)
  • README entry in pkg/cli/README.md

Verification

  • go build ./...
  • go vet ./...
  • go vet -tags=integration ./... (pkg/cli)
  • make fmt (gofmt applied)

https://github.com/github/gh-aw/actions/runs/38750758951

Generated by 🧹 Dead Code Removal Agent · copilot · auto · 16.4 AIC · ⌖ 0.855 AIC · ⊞ 9.5K · ◷

  • expires on Oct 18, 2026, 6:31 AM UTC-08:00

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Protected files were modified in this pull request and require manual scrutiny before merge.

Please verify that each protected-file change is intentional, policy-compliant, and safe:

  • Protected files: README.md

@github-actions

Copy link
Copy Markdown
Contributor Author

Thanks for the cleanup! This dead code removal looks solid and is ready for review.

Generated by ✅ Contribution Check · copilot · auto · 38 AIC · ⌖ 0.619 AIC · ⊞ 10K · ◷

@pelikhan
pelikhan marked this pull request as ready for review October 15, 2026 18:22
Copilot AI max review requested due to automatic review settings October 15, 2026 18:22
@pelikhan
pelikhan merged commit dc91dbe into main Oct 15, 2026
2 checks passed
@pelikhan
pelikhan deleted the chore/remove-dead-group-runs-f3ae8204391f7bcb branch October 15, 2026 18:22
Copilot stopped reviewing on behalf of pelikhan due to an error October 15, 2026 18:22
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · sonnet50 · 14.8 AIC · ⌖ 14.8 AIC · ◇ 6.65 AIC · ⊞ 12.0K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · 5.6 AIC · ⌖ 5.21 AIC · ⊞ 14.2K · ◷

Generated by Ponytail Reviewer for #69053

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Copilot review overview

1 open finding
What changed in this PR

This PR removes the GroupRunsByWorkflow helper from the cli package and cleans up the related tests and documentation that referenced it.

Changes:

  • Removed GroupRunsByWorkflow from pkg/cli/health_metrics.go
  • Deleted unit/spec tests that validated GroupRunsByWorkflow
  • Removed GroupRunsByWorkflow from the public API table in pkg/cli/README.md
File Description
pkg/​cli/​spec_test.go Removes the public API spec test that covered GroupRunsByWorkflow.
pkg/​cli/​health_metrics_test.go Removes unit test coverage for GroupRunsByWorkflow.
pkg/​cli/​health_metrics.go Deletes the exported GroupRunsByWorkflow function from the package.
pkg/​cli/​README.md Updates the API listing to no longer document GroupRunsByWorkflow.

🧠 Review effort: Lite


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread pkg/cli/health_metrics.go
Comment on lines 217 to 219

return summary
}
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus50 · 14.2 AIC · ⌖ 40.9 AIC · ◇ 24.3 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /codebase-design — this is a clean, self-consistent removal with no actionable issues.

📋 Analysis

Scope

This PR removes GroupRunsByWorkflow (pkg/cli/health_metrics.go) along with its unit test, its TestSpec_PublicAPI_* spec test, and its README public-API table entry — all four deletions are consistent with each other, so no orphaned references or stale docs remain.

Verification

  • Confirmed via repo-wide search that GroupRunsByWorkflow has zero remaining references anywhere in the codebase (no internal callers, no other tests).
  • PR description documents go build ./..., go vet ./..., and go vet -tags=integration ./... all passing.
  • Module github.com/github/gh-aw is a CLI tool; pkg/cli's “public API” table is an internal documentation/spec-test convention enforced by spec_test.go, not an externally consumed library surface — so the breaking-change caution already raised by the existing bot review comment is a reasonable flag but not a blocker here, since this matches the established pattern used by the repo's own dead-code-remover automated workflow.

Why no inline comments

There is no new code, abstraction, or test logic to critique under /tdd or /diagnosing-bugs — this is a pure, mechanical, fully-covered deletion. The one substantive risk (public API removal) is already captured by the existing Copilot review comment on pkg/cli/health_metrics.go:219, so duplicating it would add no value.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 19.4 AIC · ⌖ 13.4 AIC · ⊞ 11.1K
Comment /matt to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict

This is not a safe dead-code cleanup: it removes a documented exported symbol from pkg/cli and deletes the contract tests that marked it as public API.

Blocking theme

GroupRunsByWorkflow was exported, listed in pkg/cli/README.md, and covered by a public-API spec test. Removing all three together turns this into a breaking API change for downstream consumers, not an internal cleanup. Deleting the spec test only hides the compatibility regression; it does not make the removal safe.

This needs either a compatibility-preserving implementation, an explicit deprecation path, or intentional breaking-change handling rather than landing as routine dead-code removal.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 18.7 AIC · ⌖ 5.53 AIC · ⊞ 21.4K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.92.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants