docs: add require-signed-commits hook and global git hook pattern#2
docs: add require-signed-commits hook and global git hook pattern#2claude[bot] merged 4 commits intomainfrom
Conversation
Checks commit.gpgsign=true and user.signingkey is set before allowing a commit. Blocks unsigned commits in non-interactive shells (e.g. agentic AI workflows) where signing can silently fall through. Usage in .pre-commit-config.yaml: - repo: https://github.com/injectedfusion/pre-commit-hooks rev: <tag> hooks: - id: require-signed-commits
Summary of ChangesHello @injectedfusion, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances repository security and developer workflow by introducing a new Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Claude finished @injectedfusion's task in 32s —— View job PR Review: require-signed-commits hook + global hook patternReview SummaryReviewing the implementation of the Status: ✅ APPROVED The PR is production-ready. The shell script follows best practices, the hook configuration is valid, and the documentation is clear and accurate. Shell Script Analysis (
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new require-signed-commits pre-commit hook and documentation for a global git hook pattern. The changes are well-implemented. The new hook script is robust and provides helpful user feedback. I have one minor suggestion to improve the clarity of the example script in the documentation.
| exit 1 | ||
| fi | ||
|
|
||
| # Chain to repo pre-commit config if present |
There was a problem hiding this comment.
The current comment is slightly ambiguous. The script that follows will execute only the first configuration file it finds, preferring .local.yaml over the standard .pre-commit-config.yaml. The use of a for loop with exec can be misleading, as it might imply iteration over all found files. Updating the comment to clarify this behavior would improve the script's readability for users who copy it.
| # Chain to repo pre-commit config if present | |
| # Chain to repo pre-commit config if present, running the first one found (prefers .local.yaml) |
Summary
require-signed-commitsto the hooks tableThe pattern
core.hooksPathset globally → one hook script covers every repo. Chains to the repo's.pre-commit-config.yamlso team hooks still run. Nopre-commit installper repo needed.