@ondrejbelza/semantic-release-jira 1.4.2 → 1.4.3

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.
Files changed (2) hide show
  1. package/dist/success.js +5 -3
  2. package/package.json +1 -1
package/dist/success.js CHANGED
@@ -57,9 +57,9 @@ function getMentionedTickets(ticketPrefix, commits, logger) {
57
57
  }
58
58
  return [...tickets];
59
59
  }
60
- async function findOrCreateVersion(c, projectID, newVersionName, newVersionDescription, logger) {
60
+ async function findOrCreateVersion(c, projectId, newVersionName, newVersionDescription, logger) {
61
61
  const versions = await c.projectVersions.getProjectVersions({
62
- projectIdOrKey: projectID,
62
+ projectIdOrKey: projectId,
63
63
  });
64
64
  for (const v of versions) {
65
65
  if (v.name === newVersionName) {
@@ -68,10 +68,11 @@ async function findOrCreateVersion(c, projectID, newVersionName, newVersionDescr
68
68
  }
69
69
  }
70
70
  try {
71
+ logger.info(`Creating new version in jira projectId: ${projectId}, versionName: ${newVersionName}`);
71
72
  const version = await c.projectVersions.createVersion({
72
73
  name: newVersionName,
73
74
  description: newVersionDescription,
74
- projectId: projectID,
75
+ projectId: projectId,
75
76
  released: true,
76
77
  releaseDate: new Date().toISOString(),
77
78
  archived: false,
@@ -132,6 +133,7 @@ async function success(config, context) {
132
133
  logger.info(`using jira description '${consts_1.DEFAULT_RELEASE_DESCRIPTION_TEMPLATE}'`);
133
134
  const c = (0, jira_client_1.CreateJiraClient)(logger, jiraHost, env.JIRA_EMAIL, env.JIRA_TOKEN);
134
135
  const project = await c.projects.getProject({ projectIdOrKey: projectKey });
136
+ logger.info(`Attempting to create new version for project ${project.name}, id: ${project.id}`);
135
137
  const version = await findOrCreateVersion(c, Number(project.id), newVersionName, newVersionDescription, logger);
136
138
  const concurrentLimit = (0, p_limit_1.default)(10);
137
139
  const edits = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondrejbelza/semantic-release-jira",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "semantic release jira releases plugin",
5
5
  "homepage": "https://github.com/mailstepcz/semantic-release-jira#readme",
6
6
  "bugs": {