step-security/semantic-pull-request

Ensure your PR title matches the Conventional Commits spec (https://www.conventionalcommits.org/).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
typesProvide custom types (newline delimited) if you don't want the default ones from https://www.conventionalcommits.org. These are regex patterns auto-wrapped in `^ $`.no
scopesConfigure which scopes are allowed (newline delimited). These are regex patterns auto-wrapped in `^ $`.no
requireScopeConfigure that a scope must always be provided.no
disallowScopesConfigure which scopes are disallowed in PR titles (newline delimited). These are regex patterns auto-wrapped in ` ^$`.no
subjectPatternConfigure additional validation for the subject based on a regex. E.g. '^(?![A-Z]).+$' ensures the subject doesn't start with an uppercase character.no
subjectPatternErrorIf `subjectPattern` is configured, you can use this property to override the default error message that is shown when the pattern doesn't match. The variables `subject` and `title` can be used within the message.no
validateSingleCommitWhen using "Squash and merge" on a PR with only one commit, GitHub will suggest using that commit message instead of the PR title for the merge commit, and it's easy to commit this by mistake. Enable this option to also validate the commit message for one commit PRs.no
validateSingleCommitMatchesPrTitleRelated to `validateSingleCommit` you can opt-in to validate that the PR title matches a single commit to avoid confusion.no
githubBaseUrlThe GitHub base URL will be automatically set to the correct value from the GitHub context variable. If you want to override this, you can do so here (not recommended).no${{ github.api_url }}
ignoreLabelsIf the PR contains one of these labels (newline delimited), the validation is skipped. If you want to rerun the validation when labels change, you might want to use the `labeled` and `unlabeled` event triggers in your workflow.no
headerPatternIf you're using a format for the PR title that differs from the traditional Conventional Commits spec, you can use this to customize the parsing of the type, scope and subject. The `headerPattern` should contain a regex where the capturing groups in parentheses correspond to the parts listed in `headerPatternCorrespondence`. For more details see: https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser#headerpatternno
headerPatternCorrespondenceIf `headerPattern` is configured, you can use this to define which capturing groups correspond to the type, scope and subject.no
wipFor work-in-progress PRs you can typically use draft pull requests from Github. However, private repositories on the free plan don't have this option and therefore this action allows you to opt-in to using the special '[WIP]' prefix to indicate this state. This will avoid the validation of the PR title and the pull request checks remain pending. Note that a second check will be reported if this is enabled.no

no outputs