Skip to content

Commit

Permalink
Chore: more changelog fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonutEspresso committed Sep 8, 2017
1 parent 3ff79fa commit d76911b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function categorizeCommits(rawCommits) {

const capType = capitalize(commit.type);

if (!categorizedCommits.hasOwnProperty(commit.type)) {
if (!categorizedCommits.hasOwnProperty(capType)) {
categorizedCommits[capType] = [];
}

Expand Down Expand Up @@ -585,7 +585,9 @@ if (ACTION === 'generate') {
md.verify();
} else if (ACTION === 'release') {
const commits = git.getNewCommits();
console.warn(commits);
const categorizedCommits = categorizeCommits(commits);
console.warn(categorizedCommits);
const next = determineNextSemver(categorizedCommits);
const newMarkdown = md.generateUnreleasedMd(next.version, commits);
md.update(newMarkdown);
Expand Down

0 comments on commit d76911b

Please sign in to comment.