Skip to content

Commit 8a9d27b

Browse files
committed
Bumped version to 1.1.0
1 parent 66c9240 commit 8a9d27b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

dist/index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Git {
100100
// In case there are multiple tags get the first valid version tag
101101
if (this.settings.tagRegex) {
102102
res.stdout.forEach(tag => {
103-
if (RegExp(this.settings.tagRegex).test(tag)) {
103+
if (this.settings.tagRegex.test(tag)) {
104104
return tag;
105105
}
106106
});
@@ -120,7 +120,7 @@ class Git {
120120
}
121121
if (this.settings.tagRegex) {
122122
const foundTag = res.stdout[0];
123-
if (!RegExp(this.settings.tagRegex).test(foundTag)) {
123+
if (!this.settings.tagRegex.test(foundTag)) {
124124
// If previous tag doesn't match the regex keep searching back
125125
return this.previousTag(foundTag);
126126
}
@@ -148,7 +148,7 @@ class Git {
148148
const split = commit.split(' ');
149149
const hash = split[0];
150150
const message = split.slice(1).join(' ').trim();
151-
if (this.settings.filterRegex && RegExp(this.settings.filterRegex).test(message)) {
151+
if (this.settings.filterRegex && this.settings.filterRegex.test(message)) {
152152
return;
153153
}
154154
commits.push(new GitCommit(hash, message));
@@ -299,8 +299,9 @@ function initSettings() {
299299
return __awaiter(this, void 0, void 0, function* () {
300300
const settings = {};
301301
settings.gitPath = yield io.which('git', true);
302-
settings.tagRegex = core.getInput('tag-regex') || '';
303-
settings.filterRegex = core.getInput('filter-regex') || '';
302+
const caseInsensitive = core.getInput('case-insensitive-regex');
303+
settings.tagRegex = RegExp(core.getInput('tag-regex'), caseInsensitive);
304+
settings.filterRegex = RegExp(core.getInput('filter-regex'), caseInsensitive);
304305
settings.changelogFilePath = core.getInput('changelog-file-path') || 'CHANGELOG.md';
305306
return settings;
306307
});

package.json

Lines 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.0.0",
3+
"version": "1.1.0",
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)