commit message check
Actionshii these are the commit conventions (and tools) that i use in my projects
see CONVENTIONS.md for details
this is a bash script to validate your commit messages before pushing
you can run the latest version directly with
curl -sSL https://commits.adamperkowski.dev |
SCOPES="scope1 scope2" \
bash -s -- \
"<message>"# check last git commit
SCOPES="scope1 scope2" check-commit-message "$(git log -1 --pretty=%B)"| name | description | required |
|---|---|---|
SCOPES |
array of allowed scopes (empty = any scope allowed) | no |
you can use check-commit-message in your github actions workflows
- name: check commit message
uses: adamperkowski/commits@main
with:
scopes: 'scope1,scope2'you can use the docker image in your woodpecker ci pipelines
- name: check commit message
image: ghcr.io/adamperkowski/commits:latest
environment:
SCOPES: "scope1 scope2"
commands:
- check-commit-message "$(git log -1 --pretty=%B)"you can run the docker image directly
docker run --rm -e 'SCOPES="scope1 scope2"' \
ghcr.io/adamperkowski/commits:latest \
check-commit-message "<message>"commit message check is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.