Skip to content

fix(ci): format submission controller to satisfy gofmt check - #88

Closed
abhitrueprogrammer with Copilot wants to merge 2 commits into
prodfrom
copilot/fix-build-lint-test-job
Closed

abhitrueprogrammer with Copilot wants to merge 2 commits into
prodfrom
copilot/fix-build-lint-test-job

Conversation

Copilot AI commented Sep 18, 2026 •

Copy link
Copy Markdown

📌 Description

The Build, Lint & Test workflow failed because gofmt -l . flagged internal/controllers/submission.go as unformatted. This PR applies a formatting-only fix so the CI formatting gate passes and downstream lint/test/build stages can run.

  • Root cause

    • CI exited at the gofmt step on one file: internal/controllers/submission.go.
  • Change made

    • Ran gofmt on internal/controllers/submission.go (spacing/import order/trailing newline only; no behavioral changes).
  • Example (format-only)

    - currentRound:=int(timer.GetCurrentRound(ctx))
    + currentRound := int(timer.GetCurrentRound(ctx))
    
    - if currentRound==2{
    + if currentRound == 2 {

🛠️ Type of Change

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation-only changes
  • refactor: Code refactoring (no functional changes)
  • chore: Tooling, dependencies, or maintenance
  • test: Adding/updating tests
  • perf: Performance optimizations

🧪 Verification & Testing

Describe how you tested your changes. Include any commands run.

  • Ran:

    • gofmt -l .
    • go vet ./...
    • go test -v ./...
    • go build -v -o /tmp/cookoff-api cmd/api/main.go
  • Relocated tests ran and passed (go test -v ./...)

  • Static checks and formatters ran (go fmt / go vet / golangci-lint)

  • Project compiles clean (go build)


📋 Checklist

  • My commit messages conform to the Conventional Commits specification.
  • I have updated the documentation mirror (inside docs/) for the modified packages.
  • No raw SQL queries have been hardcoded (all queries compiled via SQLC).
  • database mutations (if any) are wrapped in atomic database transactions (pgx.Tx).

Co-authored-by: abhitrueprogrammer <67090539+abhitrueprogrammer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build, Lint & Test fix(ci): format submission controller to satisfy gofmt check Sep 18, 2026
@YOGESH-08

Copy link
Copy Markdown
Contributor

pls solve merge conflicts and update ur PR
Thank for ur contribution keep doing

@YOGESH-08 YOGESH-08 closed this Sep 19, 2026
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.

3 participants