mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
ci: fix dangerjs "closes anything_but_not_a_jira_link"
This commit is contained in:
parent
7c090d9a42
commit
a0b98e9945
@ -139,18 +139,21 @@ module.exports = async function () {
|
||||
const correctJiraClosingLinkFormat = new RegExp(
|
||||
`^- Closes ${jiraTicketRegex.source}$`
|
||||
);
|
||||
if (!correctJiraClosingLinkFormat.test(line)) {
|
||||
closingTickets.push({
|
||||
record: line,
|
||||
ticketName: line.match(jiraTicketRegex)[0],
|
||||
correctFormat: false,
|
||||
});
|
||||
} else {
|
||||
closingTickets.push({
|
||||
record: line,
|
||||
ticketName: line.match(jiraTicketRegex)[0],
|
||||
correctFormat: true,
|
||||
});
|
||||
const matchedJiraTicket = line.match(jiraTicketRegex);
|
||||
if (jiraTicketMatched) {
|
||||
if (!correctJiraClosingLinkFormat.test(line)) {
|
||||
closingTickets.push({
|
||||
record: line,
|
||||
ticketName: matchedJiraTicket[0],
|
||||
correctFormat: false,
|
||||
});
|
||||
} else {
|
||||
closingTickets.push({
|
||||
record: line,
|
||||
ticketName: matchedJiraTicket[0],
|
||||
correctFormat: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
return closingTickets;
|
||||
|
Loading…
Reference in New Issue
Block a user