@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 +1 -1
- package/src/changeset/cli.js +3 -5
package/package.json
CHANGED
package/src/changeset/cli.js
CHANGED
|
@@ -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]
|
|
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
|
});
|