HYPERFLEET-884 - feat: add pre-commit hooks consuming from hyperfleet-hooks#25
Conversation
📝 WalkthroughWalkthroughAdds Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
Risk Score: 0 —
|
| Signal | Detail | Points |
|---|---|---|
| PR size | 39 lines | +0 |
| Sensitive paths | none | +0 |
Computed by hyperfleet-risk-scorer
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.pre-commit-config.yaml:
- Around line 4-5: The pre-commit hook source is an untrusted repo, so pinning
it with a tag is unsafe; update the hyperfleet-hooks entry in .pre-commit-config
to use a full commit SHA instead of the current rev tag, and keep the repo
reference in sync with that immutable commit so the pre-commit hook cannot be
moved later.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 7ab30050-ba8a-4edc-b082-d99909b699dd
📒 Files selected for processing (3)
.pre-commit-config.yamlMakefileREADME.md
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
openshift-hyperfleet/architecture(manual)openshift-hyperfleet/hyperfleet-api(manual)openshift-hyperfleet/hyperfleet-sentinel(manual)openshift-hyperfleet/hyperfleet-adapter(manual)openshift-hyperfleet/hyperfleet-broker(manual)
8cf4c11 to
1e0ae69
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kuudori The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
bc77702
into
openshift-hyperfleet:main
Summary
.pre-commit-config.yamlconsuming hooks from hyperfleet-hooks v0.2.1 (commitlint, gofmt, golangci-lint, go-vet)gofmt,go-vet, andinstall-hooksMakefile targetsFollows the pattern established in hyperfleet-sentinel (#102).
Test plan
make install-hooksruns successfullymake gofmtandmake go-vetwork correctly