Skip to content

Add pre-commit hook running tests before commit - #978

Closed
shrutiburman wants to merge 1 commit into
mainfrom
lockfile-hygiene-java
Closed

shrutiburman wants to merge 1 commit into
mainfrom
lockfile-hygiene-java

Conversation

@shrutiburman

Copy link
Copy Markdown
Contributor

Summary

  • No committed Maven artifact reference embeds a fetch host the way npm/gems do, and no CI lockfile-hygiene gate exists yet for this ecosystem, so this only wires up the baseline hook.
  • Adds a githooks Makefile target that make install symlinks to .git/hooks/pre-commit, running make test before each commit — matching the pattern already shipped in twilio-node/twilio-php/twilio-ruby/twilio-go/twilio-python/twilio-csharp.

Test plan

  • make test (mvn test) run locally via the hook on commit (925 tests passed)

🤖 Generated with Claude Code

No committed Maven artifact reference embeds a fetch host the way
npm/gems do, and no CI lockfile-hygiene gate exists yet for this
ecosystem, so this only wires up the baseline hook (matching
twilio-node/php/ruby/go/python): a githooks Makefile target that
make install symlinks to .git/hooks/pre-commit, running make test
before each commit.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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