Skip to content

Fix Go code formatting to pass CI lint checks#7558

Merged
pelikhan merged 2 commits intomainfrom
copilot/lint-codebase-for-issues
Dec 24, 2025
Merged

Fix Go code formatting to pass CI lint checks#7558
pelikhan merged 2 commits intomainfrom
copilot/lint-codebase-for-issues

Conversation

Copy link
Contributor

Copilot AI commented Dec 24, 2025

The CI lint job failed on the "Check Go formatting" step due to unformatted Go code in the repository.

Changes

  • Ran gofmt on all Go source files to comply with standard Go formatting
  • Recompiled all 123 workflow lock files to reflect any formatting-related updates

The formatting issue was in pkg/cli/compile_config.go where map value alignment didn't match gofmt output:

// Before (incorrect alignment)
commonWorkflowKeywords = map[string]bool{
    "GITHUB":          true,
    "ACTIONS":         true,
    // ...
}

// After (gofmt standard)
commonWorkflowKeywords = map[string]bool{
    "GITHUB":            true,
    "ACTIONS":           true,
    // ...
}

Note: Pre-existing test failures in TestSafeInputsHTTPServer_Integration and TestTrackerIDIntegration remain unaddressed as they existed on main branch prior to these changes.

Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/20494078638/job/588911115
Lint

Custom agent used: ci-cleaner
Tidies up the repository CI state by formatting sources, running linters, fixing issues, running tests, and recompiling workflows


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add linting checks to codebase Fix Go code formatting to pass CI lint checks Dec 24, 2025
Copilot AI requested a review from pelikhan December 24, 2025 21:39
@pelikhan pelikhan marked this pull request as ready for review December 24, 2025 21:40
@pelikhan pelikhan merged commit 671003a into main Dec 24, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/lint-codebase-for-issues branch December 24, 2025 21:41
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