Skip to content

Remove unused extractMetadataFromRemoteFile function#16433

Merged
pelikhan merged 1 commit intomainfrom
copilot/fix-lint-go-workflow-again
Feb 17, 2026
Merged

Remove unused extractMetadataFromRemoteFile function#16433
pelikhan merged 1 commit intomainfrom
copilot/fix-lint-go-workflow-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

The lint-go workflow is failing on PR #16423 due to an unused function extractMetadataFromRemoteFile in pkg/cli/list_workflows_command.go.

Root Cause

The function was intended to fetch metadata (engine ID, labels, on field) from remote workflow files, but the implementation deliberately returns "N/A" for all remote metadata to avoid slow API/git calls:

// For remote repos, skip fetching individual file metadata to avoid slowness
if isRemote {
    workflows = append(workflows, WorkflowListItem{
        Workflow: name,
        EngineID: "N/A",
        Compiled: "N/A",
        Labels:   nil,
    })
}

This renders extractMetadataFromRemoteFile dead code.

Changes

  • Removed 67 lines of unused helper function from pkg/cli/list_workflows_command.go
  • No functional impact (function was never called)
  • Resolves golangci-lint unused checker failure
Original prompt

Fix the failing GitHub Actions workflow lint-go
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 63916215601
Job URL: https://github.com/github/gh-aw/actions/runs/22113706434/job/63916215601


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow lint-go Remove unused extractMetadataFromRemoteFile function Feb 17, 2026
Copilot AI requested a review from pelikhan February 17, 2026 20:32
@pelikhan pelikhan marked this pull request as ready for review February 17, 2026 20:33
Copilot AI review requested due to automatic review settings February 17, 2026 20:33
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.

Copilot wasn't able to review any files in this pull request.


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

@pelikhan pelikhan merged commit b23ceb3 into main Feb 17, 2026
1 check failed
@pelikhan pelikhan deleted the copilot/fix-lint-go-workflow-again branch February 17, 2026 20:33
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