forked from semantic-release/semantic-release
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(commit-analyzer): Change to new commit-analyzer API
Support the new commit-analyzer API. With the new API, we call the plugin once for each commit, and keep track of the changes ourselfs. This also adds support for the 'rskip' release type, which skips the release. This revealed a major problem with the pre.js unit tests (test/specs/pre.js), child process was not actually being mocked, and was simply returning an empty array. With the old system, the mocked commit-analyzer was still called and could still trigger a release (this is actually a flaw with the whole system. With the new system, this is no longer true, so the unit tests fail. I did not fix this both because it's not related to this branch/pull request, and because it would mean a major revamp, which I would need to think about more. Fixes semantic-release#41 Refs semantic-release/commit-analyzer#1, semantic-release/commit-analyzer#2 BREAKING CHANGE: The commit-analyzer is now called multiple times, and with a single commit (passed in as `commit`, vs `commits` as an array). The plugin also no longer has to deal with keeping track of the release type between commits.
- Loading branch information
Showing
3 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters