Skip to content

Fix gofmt formatting in teams_test.go - #50769

Merged
lucasmrod merged 1 commit into
mainfrom
fix-teams-test-gofmt
Aug 7, 2026
Merged

lucasmrod merged 1 commit into
mainfrom
fix-teams-test-gofmt

Conversation

@cdcme

@cdcme cdcme commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

Related issue: NA

main is currently failing the lint job on a stray double blank line in server/datastore/mysql/teams_test.go:

server/datastore/mysql/teams_test.go:1209:1: File is not properly formatted (gofmt)

This is the gofmt -w output and nothing else — one blank line removed, no code change.

Checklist for submitter

Testing

  • QA'd all new/changed functionality manually

Whitespace-only change to a test file; no behaviour to QA. Verified gofmt -l on the file is empty and go vet ./server/datastore/mysql/ is clean.

Copilot AI lite review requested due to automatic review settings August 7, 2026 14:49
@cdcme
cdcme requested a review from a team as a code owner August 7, 2026 14:49
@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Added TeamLitesByIDs test coverage for empty input, duplicate IDs, nonexistent IDs, the reserved “No team” entry, team names, and webhook configuration.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: correcting gofmt formatting in the specified test file.
Description check ✅ Passed The description explains the formatting issue, confirms the one-line change, and records relevant verification commands.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-teams-test-gofmt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lucasmrod lucasmrod left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry!

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 stray blank line in server/datastore/mysql/teams_test.go so the file is gofmt-clean and the repo-wide golangci-lint formatting check stops failing on main.

Changes:

  • Removed an extra blank line between two test helper functions in teams_test.go (no behavioral change).

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

@lucasmrod
lucasmrod merged commit 3e166ac into main Aug 7, 2026
34 checks passed
@lucasmrod
lucasmrod deleted the fix-teams-test-gofmt branch August 7, 2026 14:51
@cdcme cdcme mentioned this pull request Aug 7, 2026
11 of 15 tasks
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.40%. Comparing base (f656ac5) to head (ab0d355).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #50769   +/-   ##
=======================================
  Coverage   68.40%   68.40%           
=======================================
  Files        3963     3963           
  Lines      255174   255174           
  Branches    13420    13420           
=======================================
+ Hits       174555   174559    +4     
+ Misses      65021    65019    -2     
+ Partials    15598    15596    -2     
Flag Coverage Δ
backend 69.61% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch was previously deployed

1 inactive deployment
Docker Hub — ab0d355e Deployed Aug 7, 2026 by cdcme via publish #99849
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