ShellMagick / commit-hooks

Commit hooks based on experience, needs in teams I have worked, and acquired taste.
MIT License
0 stars 0 forks source link

Hook checking signature is on commit #6

Open AFulgens opened 8 months ago

AFulgens commented 8 months ago

Context

In some projects, you may want to only accept digitally signed commits. The biggest Git servers are also allowing such configuration for your projects (GitHub, GitLab).

Idea

A pre-push hook should be created, which checks that all commits being pushed are being signed. Thus complementing a possible setting on the Git server side (pre-check instead of post-check).