@docupace/pipeline 1.0.5-alpha.20 → 1.0.5-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.5-alpha.20",
3
+ "version": "1.0.5-alpha.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -172,8 +172,8 @@ program
172
172
  const branchName = branchStdout.trim();
173
173
  console.log(`Current branch: ${branchName}`);
174
174
 
175
- // Step 2: Extract Jira ticket number (e.g., JIRA-1234)
176
- const jiraTicketMatch = branchName.match(/([A-Z]+-\\d+)/);
175
+ // Step 2: Extract Jira ticket number (e.g., matching JIRA-1234 pattern)
176
+ const jiraTicketMatch = branchName.match(/([A-Z]+-\d+)/);
177
177
  if (!jiraTicketMatch) {
178
178
  throw new Error('No Jira ticket found in the branch name.');
179
179
  }
@@ -187,9 +187,7 @@ program
187
187
  const jiraUrl = `${jiraBaseUrl}/rest/api/2/issue/${jiraTicketId}`;
188
188
  const jiraResponse = await fetch(jiraUrl, {
189
189
  headers: {
190
- Authorization: `Basic ${Buffer.from(jiraFullApiKey).toString(
191
- 'base64',
192
- )}`,
190
+ Authorization: `Basic ${Buffer.from(jiraFullApiKey).toString('base64')}`,
193
191
  'Content-Type': 'application/json',
194
192
  },
195
193
  });