We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 190990d + 3e8e954 commit f325562Copy full SHA for f325562
lib/issue-linker.js
@@ -3,15 +3,15 @@
3
* Based upon ../samples/post-processing.js
4
*/
5
6
-const TITLE_REGEX = /^([A-Z]+-\d+) (.*)$/;
+const TITLE_REGEX = /^([A-Za-z]+-\d+) (.*)$/;
7
const ISSUE_TRACKER_HOST = "https://virdocs.atlassian.net/browse/";
8
9
module.exports = function (data, callback) {
10
const rewritten = data.commits.map((commit) => {
11
const matches = commit.title.match(TITLE_REGEX);
12
if (matches && matches.length > 2) {
13
// extra metadata to remember the linked tasks
14
- commit.issue = matches[1];
+ commit.issue = matches[1].toUpperCase();
15
commit.issueLink = ISSUE_TRACKER_HOST + commit.issue;
16
17
// remove issue from the title
0 commit comments