Skip to content

Add pre-commit hook and make install-hooks target#52

Merged
marcus merged 1 commit intomainfrom
shrike/pre-commit-hooks
Mar 1, 2026
Merged

Add pre-commit hook and make install-hooks target#52
marcus merged 1 commit intomainfrom
shrike/pre-commit-hooks

Conversation

@marcus
Copy link
Owner

@marcus marcus commented Mar 1, 2026

What

Adds a git pre-commit hook matching the pattern recently landed in nightshift and sidecar.

Changes

  • scripts/pre-commit.sh — checks gofmt on staged .go files, go vet, go build
  • make install-hooks — symlinks the hook into .git/hooks/pre-commit
  • README updated to document make install-hooks in the dev section

How to test

make install-hooks
# stage a .go file and commit — hook should run

- scripts/pre-commit.sh: checks gofmt on staged .go files, go vet, go build
- make install-hooks: symlinks hook into .git/hooks/pre-commit
- README: document make install-hooks in dev section

Same pattern as nightshift and sidecar.
@marcus marcus merged commit d452eda into main Mar 1, 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.

1 participant