cangulo-actions/🚔️ Commits Validation

Validate PR commits and calculate the next release version based on the changes. Commits must follow the conventional commit format `type(scope): description` Example: `feat(core): add new feature` Custom configuration is supported through a YML file.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit May 29, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: cangulo-actions/conventional-commits-validator@48853d4b9f88f3118a42cc9b161e855389001678 # 0.5.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
configurationpath to the YML configurationno""
calculate-next-releaseflag for calculating the next release. It will be printed as an annotation. nofalse
version-prefixstring to be added as prefix to the version. Only available if calculate-next-release is true. Example: v -> next-version: v1.0.0 no""
label-pr-with-release-typeflag for adding the release type as a label to the PR. Format: 'release-type:<value>' Release Types: 'major', 'minor', 'patch', 'no-release' Example: 'release-type:major' nofalse
label-pr-with-commit-typesflag for adding each commit type as a label to the PR. Format: '<commit-type>' Commit Types: defined in 'commits.default' at ./config.schema.yml or in the inputs.configuration file Example: 'fix,docs' nofalse
label-pr-with-commit-scopesflag for adding all scopes as labels to the PR.nofalse
namedescription
new-release-triggeredflag to detect if the PR changes will trigger a new release
next-versionversion to be released when the PR is merged
next-release-typenext release type: major, minor or patch
changescommits parsed into model: [{type, releaseAssociated, scopes, description, originalCommit}]
scopes{scopename:{version,changes,changelog-record}}