mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
Merge branch 'ci/fix_dangerjs_close_not_jira_link' into 'master'
ci: fix dangerjs "closes anything_but_not_a_jira_link" See merge request espressif/esp-idf!22797
This commit is contained in:
@@ -139,18 +139,21 @@ module.exports = async function () {
|
|||||||
const correctJiraClosingLinkFormat = new RegExp(
|
const correctJiraClosingLinkFormat = new RegExp(
|
||||||
`^- Closes ${jiraTicketRegex.source}$`
|
`^- Closes ${jiraTicketRegex.source}$`
|
||||||
);
|
);
|
||||||
if (!correctJiraClosingLinkFormat.test(line)) {
|
const matchedJiraTicket = line.match(jiraTicketRegex);
|
||||||
closingTickets.push({
|
if (matchedJiraTicket) {
|
||||||
record: line,
|
if (!correctJiraClosingLinkFormat.test(line)) {
|
||||||
ticketName: line.match(jiraTicketRegex)[0],
|
closingTickets.push({
|
||||||
correctFormat: false,
|
record: line,
|
||||||
});
|
ticketName: matchedJiraTicket[0],
|
||||||
} else {
|
correctFormat: false,
|
||||||
closingTickets.push({
|
});
|
||||||
record: line,
|
} else {
|
||||||
ticketName: line.match(jiraTicketRegex)[0],
|
closingTickets.push({
|
||||||
correctFormat: true,
|
record: line,
|
||||||
});
|
ticketName: matchedJiraTicket[0],
|
||||||
|
correctFormat: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return closingTickets;
|
return closingTickets;
|
||||||
|
Reference in New Issue
Block a user