Skip to content

Commit

Permalink
Fix breaking commit sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jan 4, 2019
1 parent 7d7f377 commit 73c05a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function getSummary (message, releaseSummary) {
}

function sortCommits (a, b) {
if (!a.breaking && b.breaking) return -1
if (a.breaking && !b.breaking) return 1
if (!a.breaking && b.breaking) return 1
if (a.breaking && !b.breaking) return -1
return (b.insertions + b.deletions) - (a.insertions + a.deletions)
}

Expand Down

0 comments on commit 73c05a1

Please sign in to comment.