angular-cn/tools/validate-commit-message/spec/support
Igor Minar dff6ee3272 ci: validate the message of each new commit as part of the CI linting
This patch adds the gulp command of `validate-commit-messages`
which will validate the range of commits messages present in the
active branch.

This check now runs on CI as part of the linting checks.

Allowed commit message types and scopes are controlled via commit-message.json file
and documented at https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines

This solution is based on old Vojta's code that he wrote for angular/angular.js, that was later adjusted
by @matsko in .

Ideally we should switch over to something like https://www.npmjs.com/package/commitplease
as suggested in  but that package currently doesn't support strict scope checking,
which is one of the primarily goal of this PR.

Note that this PR removes support for "chore" which was previously overused
by everyone on the team.

Closes 
Fixes 
2017-01-23 10:51:28 -08:00
..
jasmine.json ci: validate the message of each new commit as part of the CI linting 2017-01-23 10:51:28 -08:00