Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(infrastructure): correct reason why component is shown in summary…
Browse files Browse the repository at this point in the history
… table. (#519)
  • Loading branch information
yeelan0319 authored Apr 17, 2017
1 parent 1a6d1ac commit f96a1ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/determine-pkg-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ function pickBestVersionInfo(pkg) {
possibleNewChangeType = semver.major(pkg.version) === 0 ? VersionType.MINOR : VersionType.MAJOR;
} else if (commitInfo.type === 'feat') {
possibleNewChangeType = VersionType.MINOR;
} else if (commitInfo.type === 'docs') {
// docs would not cause any change, so it should not put its commit message as reason of version bump.
return currentBest;
} else {
// fix, docs, style (refers to coding style), refactor (non-breaking change), chore, ...
// fix, style (refers to coding style), refactor (non-breaking change), chore, ...
possibleNewChangeType = VersionType.PATCH;
}
// Note that we assume that pkg.version is valid by the time we get here.
Expand Down

0 comments on commit f96a1ca

Please sign in to comment.