Skip to content

Commit

Permalink
build: add release as a valid commit message subject
Browse files Browse the repository at this point in the history
  • Loading branch information
matsko committed Oct 27, 2017
1 parent 703fcda commit c0a0c5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/validate-commit-message/commit-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"platform-server",
"platform-webworker",
"platform-webworker-dynamic",
"release",
"router",
"service-worker",
"upgrade",
Expand Down
3 changes: 3 additions & 0 deletions tools/validate-commit-message/validate-commit-message.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ describe('validate-commit-message.js', function() {
expect(validateMessage('refactor(platform-webworker): something')).toBe(VALID);
expect(validateMessage('test(language-service): something')).toBe(VALID);
expect(validateMessage('test(packaging): something')).toBe(VALID);
expect(validateMessage('release: something')).toBe(VALID);
expect(validateMessage('release(packaging): something')).toBe(VALID);
expect(errors).toEqual([]);
});

Expand Down Expand Up @@ -65,6 +67,7 @@ describe('validate-commit-message.js', function() {
.forEach((expectedErrorMessage, index) => {
expect(expectedErrorMessage).toEqual(errors[index]);
});
expect(validateMessage('release(angular): something')).toBe(INVALID);
});


Expand Down

0 comments on commit c0a0c5a

Please sign in to comment.