- Go 100%
commit-checker #
A utility CLI to check commits for various requirements
Usage: commit-checker run [<commit-sha>] [flags]
Check a commit for various style guides
Arguments:
[<commit-sha>] The commit-ish reference to be checked. Defaults to HEAD if
not specified
Flags:
-h, --help Show context-sensitive help.
-v, --version Show the version and exit
--dco-required/dco-optional
When required, ensure commit has a 'Signed-off-by'
trailer. Required by default.
--signature-required/signature-optional
When required, verify commit signature exists.
Required by default.
--conventional-required/conventional-optional
When required, ensure commit strictly adheres to
conventional commit style. Required by default.
--commit-body-required/commit-body-optional
When required, ensure commit message has a body.
Required by default.
--[no-]fail-fast Quit when the first error occurs. If --no-fail-fast
is specified, collect all errors before quitting.
On by default.
Requirements #
This tool must be run inside of git repository, and the git CLI must exist
on the system $PATH variable.
Contributing #
Code of Conduct #
Contributions are welcome, but all community members must adhere to the code of conduct.
Commit requirements #
- Commit messages (not necessarily PR names) must follow Conventional Commit style
- Commits must be signed
- Commits must have a signed DCO, achievable
with the
gitcommand usinggit commit -s.
Usage of Generative AI and AI agents #
I cannot control what you, as a person and developer, use in your toolchain. I can only control what is accepted into this repository. If you choose to use GenAI as a tool in your workflow, that's fine, but you as a developer, need to be able to explain any changes made during a code review. However, I forbid the use of AI agents for autonomous contributions, and they will be closed without any inspection or appeal. Please see AGENTS.md for a description. This idea has been adopted from the no-agents.md initiative.