Skip to content

Commit 851fcaa

Browse files
Fixes after comments from Alex Canessa:
1 - Since it is a new feature, the version should be 0.4.0 2 - I prefer to keep the default to Commits, to avoid a breaking change.
1 parent 660b903 commit 851fcaa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-release-notes",
3-
"version": "0.3.4",
3+
"version": "0.4.0",
44
"description": "Node module to publish release notes based on commits between the last two tags.",
55
"main": "./github-release-notes.js",
66
"scripts": {

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function prepareRelease(gren, tagName, commitMessages) {
7373
{
7474
case 'MergePull':
7575
return message.match(/^merge/i);
76-
case "Commits":
77-
return !message.match(/^merge/i);
78-
default:
76+
case "All":
7977
return true;
78+
default:
79+
return !message.match(/^merge/i);
8080
}
8181
})
8282
.map(createBody)

0 commit comments

Comments
 (0)