Based on Conventional Commits specification, this tool checks whether PR titles comply with the given standards.
Consistent with open-source community standards. For details, see https://www.conventionalcommits.org/
A configuration file must exist in the repository root directory. You can copy the example configuration file commitlintrc.yml.
docker run --rm \
-v $(pwd):$(pwd) \
-w $(pwd) \
-e CNB_PULL_REQUEST_TITLE="feat: add demo for plugins" \
tencentcom/git-mr-title-lint
# Check MR title to ensure it complies with commit message conventions
main:
pull_request:
- stages:
- name: git-mr-title-lint
image: tencentcom/git-mr-title-lint