Repository navigation
Tags
Tags
fix: let git's revert subjects through and accept the revert type (#724) * fix: let git's revert subjects through and accept the revert type git revert writes 'Reapply "..."' when the commit it reverts is itself a revert (git 2.43+); CC001 now exempts it as it already did 'Revert "...". CC007 counts it as a revert, so allow_revert_commits = false still rejects it. The subject length rules no longer measure 'Revert "..."' or 'Reapply "..."': the nine extra characters are git's, and a subject that fit the limit was rejected once reverted. revert joins the default commit types. v1 accepted "revert: ...", the Conventional Commits FAQ recommends it for a hand-written revert, and 16 owners in public configs add it back by hand. * docs: add the before and after image for the pull request * docs: drop the pull request image from the tree
fix: need the target branch in commit-check-ci only for the rebase ru… …le (#716) A merge request pipeline that runs in a fork of a private project cannot fetch the target branch: the project refuses the fork's job token. The branch check failed there even when require_rebase_target was not set, the one rule that reads the target branch. The check now reads the configuration when the target branch could not be prepared, and goes on to check the branch name when the rule is not set. With the rule set, or a configuration that cannot be read, it fails as before. Co-authored-by: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
feat: add --pr-title to check a pull or merge request title (#709) * feat: add --pr-title to check a pull or merge request title A title piped to --message is held to the commit-only rules too: a body (CC011), a sign-off (CC012) and, since a CI job has no git identity, the author of HEAD (CC017). --pr-title runs every other message rule on the piped title, as the Action already does for its pr-title input, so GitLab CI and Bitbucket Pipelines can check $CI_MERGE_REQUEST_TITLE and the pull request title the same way. * docs: list GitLab CI, Bitbucket and Azure Pipelines in the README --------- Co-authored-by: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
PreviousNext