angular-docs-cn/tools/validate-commit-message
George Kalpakas c0d5684078 fix: do not allow `squash! ` commits when merging (#32023)
While `fixup! ` is fine, `squash! ` means that the commit message needs
tweaking, which cannot be done automatically during merging (i.e. it
should be done by the PR author).

Previously, `validate-commit-message` would always allow
`squash! `-prefixed commits, which would cause problems during merging.

This commit changes `validate-commit-message` to make it configurable
whether such commits are allowed and configures the
`gulp validate-commit-message` task, which is run as part of the `lint`
job on CI, to not allow them.

NOTE: This new check is disabled in the pre-commit git hook that is used
      to validate commit messages, because these commits might still be
      useful during development.

PR Close #32023
2019-08-09 15:12:37 -07:00
..
BUILD.bazel ci: remove validate-commit-message tests from travis (#27386) 2018-12-05 20:55:32 -08:00
commit-message.json build: allow "zone.js" as scope for commit messages (#31277) 2019-06-26 09:23:02 -07:00
index.js
validate-commit-message.js fix: do not allow `squash! ` commits when merging (#32023) 2019-08-09 15:12:37 -07:00
validate-commit-message.spec.js fix: do not allow `squash! ` commits when merging (#32023) 2019-08-09 15:12:37 -07:00