@docupace/pipeline 1.0.35-matttest.0 → 1.0.35-matttest.2

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.35-matttest.0",
3
+ "version": "1.0.35-matttest.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -249,9 +249,14 @@ program
249
249
  }
250
250
  const jiraTicketId = jiraTicketMatch[0];
251
251
 
252
+ console.debug('JIRA_API_EMAIL:', process.env.JIRA_API_EMAIL);
253
+ console.debug('JIRA_API_KEY:', process.env.JIRA_API_KEY);
254
+ const url = `/rest/api/2/issue/${jiraTicketId}`;
255
+ console.debug('url: ', url);
256
+
252
257
  // Step 3: Fetch Jira ticket information
253
258
  const jiraTicketData = await makeJiraRequest(
254
- `/rest/api/2/issue/${jiraTicketId}`,
259
+ url
255
260
  );
256
261
 
257
262
  if (jiraTicketData.fields.customfield_10107?.value !== 'Product') {
package/src/next/jira.js CHANGED
@@ -74,7 +74,7 @@ export async function updateComponentVersion(issueKey, packageName, version) {
74
74
  */
75
75
  export async function makeJiraRequest(endpoint, options = {}) {
76
76
  try {
77
- const response = await jiraClient({
77
+ const response = await jiraClient.get({
78
78
  url: endpoint,
79
79
  ...options,
80
80
  });