Skip to content

CBG-5480 setup pre-commit and update CI - #81

Merged
torcolvin merged 1 commit into
mainfrom
CBG-5480
Jun 25, 2026
Merged

CBG-5480 setup pre-commit and update CI#81
torcolvin merged 1 commit into
mainfrom
CBG-5480

Conversation

@torcolvin

Copy link
Copy Markdown
Collaborator

CBG-5480 setup pre-commit and update CI

Update with same code as couchbase/sg-bucket#147

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a repository-level pre-commit configuration and updates the GitHub Actions CI workflow to align tooling and versions with the referenced sg-bucket change set.

Changes:

  • Introduces .pre-commit-config.yaml with local hooks for addlicense, goimports, and golangci-lint.
  • Updates CI to newer Go/tooling versions (Go 1.26.4, golangci-lint v2.12.2, test annotations v0.9.0) and factors repeated uses: values via YAML anchors.
  • Expands test-race to run across macos-latest, windows-latest, and ubuntu-latest.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.pre-commit-config.yaml Adds local pre-commit hooks to enforce license headers, import formatting, and linting.
.github/workflows/ci.yml Updates Go/tooling versions, deduplicates action versions with anchors, and broadens test-race coverage via an OS matrix.

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

Comment thread .pre-commit-config.yaml
- id: addlicense
name: addlicense
language: system
entry: go run github.com/google/addlicense@latest -f licenses/addlicense.tmpl

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm OK not fixing this because this matches ci.yml

@torcolvin
torcolvin enabled auto-merge (squash) June 25, 2026 14:46
@torcolvin
torcolvin merged commit 3e0b3ea into main Jun 25, 2026
20 checks passed
@torcolvin
torcolvin deleted the CBG-5480 branch June 25, 2026 14:51
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