Skip to content

chore: remove dead functions (phase 7) — parser URL & schema#19233

Merged
dsyme merged 1 commit intomainfrom
dc-7
Mar 2, 2026
Merged

chore: remove dead functions (phase 7) — parser URL & schema#19233
dsyme merged 1 commit intomainfrom
dc-7

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Mar 2, 2026

Remove 4 unreachable functions: ParseRunURL, GetRepoSlug, GetWorkflowName, GetMainWorkflowSchema. Part of dead code cleanup.

Remove 4 unreachable functions:
- ParseRunURL (github_urls.go)
- GitHubURLComponents.GetRepoSlug (github_urls.go)
- GitHubURLComponents.GetWorkflowName (github_urls.go)
- GetMainWorkflowSchema (schema_compiler.go)

Also remove their exclusive tests.
Copilot AI review requested due to automatic review settings March 2, 2026 14:34
Copy link
Contributor

Copilot AI left a comment

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 set of confirmed-unreferenced helper APIs related to GitHub run URL parsing and workflow schema access as part of the ongoing dead-code cleanup.

Changes:

  • Removed ParseRunURL convenience wrapper and related CLI test coverage.
  • Removed GitHubURLComponents helpers (GetRepoSlug, GetWorkflowName) and their unit tests.
  • Removed exported GetMainWorkflowSchema accessor (schema remains embedded and used internally).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
pkg/parser/schema_compiler.go Drops the exported schema getter; schema continues to be referenced internally via mainWorkflowSchema.
pkg/parser/github_urls.go Removes dead exported parsing/helper functions and the now-unused filepath import.
pkg/parser/github_urls_test.go Removes tests for deleted GitHubURLComponents helper methods.
pkg/cli/audit_test.go Removes ParseRunURL tests and the now-unused parser import.

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

@dsyme dsyme merged commit a9ac928 into main Mar 2, 2026
88 checks passed
@dsyme dsyme deleted the dc-7 branch March 2, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants