angular-docs-cn/scripts
George Kalpakas ab30b2ad01 build: mention where to find the invalid commit message, when validation fails (#32420)
Whenever someone tries to commit (by running `git commit` directly or
indirectly), a `commit-msg` git hook is run to validate the commit
message. If the validation fails, an error message is printed and the
commit is aborted.

Occasionally, people may have written a non-trivial commit message which
could turn out to be invalid (due a small typo for example). In that
case, it is frustrating to "lose" the whole message and have to write it
all over again (from memory). This is frustrating and has happened to me
enough times to finally seek a solution.

Fortunately, it turns out that git stores the last commit message in
`.git/COMMIT_EDITMSG`, so it is easy to get it back (as long as you know
where to look for it). This commit mentions this info in the validation
error to help people that might not know about it.

(This issue is probably mostly relevant for people using git from the
command-line and not through a UI, but it won't hurt in either case.)

PR Close #32420
2019-08-30 13:52:54 -04:00
..
browserstack ci: clean up CI logging, folding, add build time logging, and improve error handling (#14425) 2017-03-02 00:22:24 -08:00
ci ci: Add ANGULAR_PACKAGE to snapshot builds (#31900) 2019-08-28 21:25:56 -07:00
git build: mention where to find the invalid commit message, when validation fails (#32420) 2019-08-30 13:52:54 -04:00
github build: update base SHA for rebase on merge-pr script 2019-05-21 17:07:19 -07:00
jenkins fix(build): make perf tests work again 2015-02-27 15:22:19 -08:00
release build: add pre-release check that validates the version name (#29551) 2019-03-27 12:26:13 -07:00
saucelabs ci: move bazel saucelabs execution to script to be used across all Angular repos (#32141) 2019-08-16 09:57:23 -07:00
build-ivy-npm-packages.sh build: allow build-packages-dist.sh to be run from anywhere (#29092) 2019-03-20 14:45:54 -04:00
build-packages-dist.sh build: allow build-packages-dist.sh to be run from anywhere (#29092) 2019-03-20 14:45:54 -04:00
package-builder.sh build: unable to run build-packages-dist script on windows (#30853) 2019-06-05 09:05:28 -07:00