Skip to content

[dead-code] chore: remove dead functions — 1 function removed#42778

Merged
pelikhan merged 1 commit into
mainfrom
dead-code/remove-isRepositorySkillSpec-20260701-4b57a673e798740c
Jul 1, 2026
Merged

[dead-code] chore: remove dead functions — 1 function removed#42778
pelikhan merged 1 commit into
mainfrom
dead-code/remove-isRepositorySkillSpec-20260701-4b57a673e798740c

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Functions Removed

Function File
isRepositorySkillSpec pkg/workflow/skills_frontmatter.go

Tests Removed

  • TestIsRepositorySkillSpec (exclusively tested the removed function)

Verification

  • go build ./...
  • go vet ./...
  • go vet -tags=integration ./...
  • make fmt

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

Generated by 🧹 Dead Code Removal Agent · 42.4 AIC · ⌖ 11.3 AIC · ⊞ 1.7K ·

  • expires on Jul 4, 2026, 7:21 AM UTC-08:00

Remove unreachable isRepositorySkillSpec and its exclusive test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review July 1, 2026 15:33
Copilot AI review requested due to automatic review settings July 1, 2026 15:33
@pelikhan pelikhan merged commit 5bddc87 into main Jul 1, 2026
24 checks passed
@pelikhan pelikhan deleted the dead-code/remove-isRepositorySkillSpec-20260701-4b57a673e798740c branch July 1, 2026 15:33
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Test Quality Sentinel completed test quality analysis.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #42778 does not have the 'implementation' label and has 0 new lines of code in business logic directories (threshold: 100).

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

PR Code Quality Reviewer completed the code quality review.

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.

Pull request overview

Removes a dead helper used for classifying skill spec strings and deletes the now-obsolete unit test, keeping the skills frontmatter codepath leaner.

Changes:

  • Removed isRepositorySkillSpec from pkg/workflow/skills_frontmatter.go.
  • Removed TestIsRepositorySkillSpec from pkg/workflow/skills_frontmatter_test.go.
Show a summary per file
File Description
pkg/workflow/skills_frontmatter.go Drops an unused skill-spec classification helper.
pkg/workflow/skills_frontmatter_test.go Removes the unit test that exclusively covered the deleted helper.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

return strings.Count(base, "/") == 1
}

func parseRawSkillReferences(rawSkills []any) []SkillReference {
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions github-actions Bot mentioned this pull request Jul 1, 2026

@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.

Dead code removal looks correct

The removed function and its dedicated test are cleanly excised. Build and vet checks pass. No callers remain. Nothing blocking — the ADR staleness concern is already noted in an existing inline comment.

🔎 Code quality review by PR Code Quality Reviewer · 20.6 AIC · ⌖ 7.09 AIC · ⊞ 1.6K
Comment /review 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.

Clean dead-code removal. isRepositorySkillSpec has no remaining callers in Go source (ADR reference is documentation-only), and the co-located test is correctly removed alongside it. Build, vet, and fmt checks all pass per PR description. Nothing to block.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · 11 AIC · ⌖ 6.56 AIC · ⊞ 4.9K

@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, well-scoped dead code removal. No blocking issues found.

📋 Summary

What was removed

  • isRepositorySkillSpec — had no call sites remaining in the codebase
  • TestIsRepositorySkillSpec — exclusively tested the removed function, so its deletion is correct and expected

Positive Highlights

  • ✅ Automated dead-code detection paired with manual verification (go build, go vet, make fmt)
  • ✅ Test removal is cleanly paired with the function removal — no orphaned tests
  • ✅ Scope is tightly bounded to two files with zero additions

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · 29.2 AIC · ⌖ 6.98 AIC · ⊞ 6.6K
Comment /matt to run again

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

🧪 Test Quality Sentinel Report

No new tests to score — dead-code removal only.

Analyzed 0 test(s): this PR deletes tests for the removed isRepositorySkillSpec function with 0 additions.

📊 Metrics (0 new tests)
Metric Value
Analyzed 0 (Go: 0, JS: 0)
✅ Design
⚠️ Implementation
Edge/error coverage
Duplicate clusters 0
Inflation No
🚨 Violations 0

No new test functions were added or changed. The 5 deleted lines in skills_frontmatter_test.go removed the test for the now-deleted isRepositorySkillSpec dead function. This is the correct hygiene action alongside the dead-code removal in skills_frontmatter.go.

Verdict

Passed. No new tests to evaluate; dead-code cleanup with matching test removal is appropriate.

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.

🧪 Test quality analysis by Test Quality Sentinel · 60.8 AIC · ⌖ 16.5 AIC · ⊞ 6.8K ·
Comment /review 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.

✅ Test Quality Sentinel: N/A. No new tests added — dead-code removal with matching test cleanup. 0% implementation tests (threshold: 30%).

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.82.2

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