-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ALL] - feat: add tools to ensure commits are signed and renovate pr-commit-config #3567
[ALL] - feat: add tools to ensure commits are signed and renovate pr-commit-config #3567
Conversation
.pre-commit-config.yaml
Outdated
hooks: | ||
- id: gpg-signed-commit | ||
name: GPG Signed Commit Check | ||
entry: bash -c 'for commit_sha in $(git log --pretty=%h master..); do git verify-commit "$commit_sha" || echo "error unisgned commit $commit_sha" && exit 1; done' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git log --pretty=%h master.. # list commit hash diff with master
git verify-commit # echo gpg:... if signed with gpg else exit 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and works like a charm! 🙌
.pre-commit-config.yaml
Outdated
hooks: | ||
- id: gpg-signed-commit | ||
name: GPG Signed Commit Check | ||
entry: bash -c 'for commit_sha in $(git log --pretty=%h master..); do git verify-commit "$commit_sha" || echo "error unisgned commit $commit_sha" && exit 1; done' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small typo: echo "error unisgned.....
Proposed changes
Related issues
Checklist
How to test