Skip to content

Commit be18b51

Browse files
project id added wildcard to detect all projects
1 parent 9784b8b commit be18b51

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

dist/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,13 @@ function generateReleaseNotes(branchDiffFile, projectKeys, previousVersion, newV
471471
console.log("Lines: " + lines.length);
472472

473473
const mergeRegExp = new RegExp('Merge branch .* into .*');
474-
475474
const regExps = [];
476475
for (const projectKey of projectKeys) {
477-
regExps.push(new RegExp(`${projectKey.trim()}-([0-9]*)`))
476+
if (projectKey === '*') {
477+
regExps.push(new RegExp('([A-Z].*)-([0-9].*)'));
478+
} else {
479+
regExps.push(new RegExp(`${projectKey.trim()}-([0-9].*)`));
480+
}
478481
}
479482

480483
const tickets = {};

index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ function generateReleaseNotes(branchDiffFile, projectKeys, previousVersion, newV
1111
console.log("Lines: " + lines.length);
1212

1313
const mergeRegExp = new RegExp('Merge branch .* into .*');
14-
1514
const regExps = [];
1615
for (const projectKey of projectKeys) {
17-
regExps.push(new RegExp(`${projectKey.trim()}-([0-9]*)`))
16+
if (projectKey === '*') {
17+
regExps.push(new RegExp('([A-Z].*)-([0-9].*)'));
18+
} else {
19+
regExps.push(new RegExp(`${projectKey.trim()}-([0-9].*)`));
20+
}
1821
}
1922

2023
const tickets = {};

0 commit comments

Comments
 (0)