Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5612b13

Browse filesBrowse files
committed
Bumped version to 1.2.1
1 parent cd76390 commit 5612b13
Copy full SHA for 5612b13

File tree

Expand file treeCollapse file tree

3 files changed

+18
-8
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+18
-8
lines changed

‎dist/index.js

Copy file name to clipboardExpand all lines: dist/index.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ class Git {
9999
}
100100
// In case there are multiple tags get the first valid version tag
101101
if (this.settings.tagRegex) {
102+
let foundTag = '';
102103
res.stdout.forEach(tag => {
103104
if (this.settings.tagRegex.test(tag)) {
104-
return tag;
105+
foundTag = tag;
106+
return;
105107
}
106108
});
107-
// No tag matched
108-
return '';
109+
// Return either matched tag or none
110+
return foundTag;
109111
}
110112
// Get the first tag we found if there's no tag regex
111113
return res.stdout[0];

‎package-lock.json

Copy file name to clipboardExpand all lines: package-lock.json
+12-4Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-changelog",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"private": true,
55
"description": "Action to generate a changelog from a Git repository commit history.",
66
"main": "lib/main.js",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.