Skip to content

Commit

Permalink
Update default JIRA Regex to catch ticketswhen there is an number in …
Browse files Browse the repository at this point in the history
…the project name
  • Loading branch information
nvuillam committed Jan 8, 2025
1 parent e21fff5 commit d5d7ede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`

## [5.13.3] 2025-01-08

- Update default JIRA Regex to catch tickets when there is an number in the project name

## [5.13.2] 2025-01-07

- [hardis:project:deploy:smart](https://sfdx-hardis.cloudity.com/hardis/project/deploy/smart/): Fix parsing when deployment failure is related to Apex code coverage
Expand Down
2 changes: 1 addition & 1 deletion src/common/ticketProvider/jiraProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class JiraProvider extends TicketProviderRoot {
}
// Extract JIRA tickets using Identifiers
const jiraBaseUrl = getEnvVar("JIRA_HOST") || "https://define.JIRA_HOST.in.cicd.variables/";
const jiraRegex = getEnvVar("JIRA_TICKET_REGEX") || "(?<=[^a-zA-Z0-9_-]|^)([A-Za-z]{2,10}-\\d{1,6})(?=[^a-zA-Z0-9_-]|$)";
const jiraRegex = getEnvVar("JIRA_TICKET_REGEX") || "(?<=[^a-zA-Z0-9_-]|^)([A-Za-z0-9]{2,10}-\\d{1,6})(?=[^a-zA-Z0-9_-]|$)";
const jiraRefRegex = new RegExp(jiraRegex, "gm");
const jiraRefs = await extractRegexMatches(jiraRefRegex, text);
const jiraBaseUrlBrowse = jiraBaseUrl.replace(/\/$/, "") + "/browse/";
Expand Down

0 comments on commit d5d7ede

Please sign in to comment.