From 5fb0b14ef54bdd219b2a406cb08c9171870a044f Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Wed, 6 Mar 2024 10:48:04 +0000 Subject: [PATCH 01/23] feat(package-name): change package name to publish BREAKING CHANGE: The package is renamed --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 63d5a67..1319d29 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "semantic-release-jira-releases", + "name": "semantic-release-jira", "version": "1.0.0-prerelease.2", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", From 85636af1c5144a64c04db1ca38d0f07b4470a492 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 6 Mar 2024 10:48:36 +0000 Subject: [PATCH 02/23] chore(release): 1.0.0-prerelease.3 [skip ci] # [1.0.0-prerelease.3](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.2...v1.0.0-prerelease.3) (2024-03-06) ### Features * **package-name:** change package name to publish ([5fb0b14](https://github.com/jamesbuddrige/semantic-release-jira/commit/5fb0b14ef54bdd219b2a406cb08c9171870a044f)) ### BREAKING CHANGES * **package-name:** The package is renamed --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a658d3..be6ea83 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.2", + "version": "1.0.0-prerelease.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.2", + "version": "1.0.0-prerelease.3", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index 1319d29..fd0ed06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "semantic-release-jira", - "version": "1.0.0-prerelease.2", + "version": "1.0.0-prerelease.3", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 7c66fffcd3358b7abee587941d06ba18b9549717 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Wed, 6 Mar 2024 10:52:42 +0000 Subject: [PATCH 03/23] fix: use correct release builder --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96ab34f..0ec4da0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,13 +21,10 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 + - name: Install dependencies + run: npm ci - name: Semantic Release - uses: cycjimmy/semantic-release-action@v4 - id: semantic - with: - extra_plugins: | - @saithodev/semantic-release-backmerge - @semantic-release/git + run: npx semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From ee86533572f106f557c7434b79e5f72ce1ed58ca Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 6 Mar 2024 10:53:31 +0000 Subject: [PATCH 04/23] chore(release): 1.0.0-prerelease.4 [skip ci] # [1.0.0-prerelease.4](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.3...v1.0.0-prerelease.4) (2024-03-06) ### Bug Fixes * use correct release builder ([7c66fff](https://github.com/jamesbuddrige/semantic-release-jira/commit/7c66fffcd3358b7abee587941d06ba18b9549717)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index be6ea83..388d204 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.3", + "version": "1.0.0-prerelease.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.3", + "version": "1.0.0-prerelease.4", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index fd0ed06..f173b31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "semantic-release-jira", - "version": "1.0.0-prerelease.3", + "version": "1.0.0-prerelease.4", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 0a92dfb255a898931ca11b7de40607c9309c2d51 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Wed, 6 Mar 2024 11:19:11 +0000 Subject: [PATCH 05/23] feat: change package name to personal namespace --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fd0ed06..6e972df 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "semantic-release-jira", + "name": "@jamesbuddrige/semantic-release-jira", "version": "1.0.0-prerelease.3", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", From 93716e9c7c202fccfe2818072c178e49c2dd73de Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 6 Mar 2024 11:20:34 +0000 Subject: [PATCH 06/23] chore(release): 1.0.0-prerelease.5 [skip ci] # [1.0.0-prerelease.5](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.4...v1.0.0-prerelease.5) (2024-03-06) ### Features * change package name ([6ee7306](https://github.com/jamesbuddrige/semantic-release-jira/commit/6ee7306a158d2fc2508cb75a7b9ac6736ff12be0)) * change package name to personal namespace ([0a92dfb](https://github.com/jamesbuddrige/semantic-release-jira/commit/0a92dfb255a898931ca11b7de40607c9309c2d51)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 388d204..446be9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.4", + "version": "1.0.0-prerelease.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.4", + "version": "1.0.0-prerelease.5", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index 6e972df..428026a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.3", + "version": "1.0.0-prerelease.5", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From cc5dcab2ebed352c9135896d4a9a23d9af477f7e Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Wed, 6 Mar 2024 11:26:11 +0000 Subject: [PATCH 07/23] fix(release): make package public --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 6e972df..2dddfcf 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,9 @@ "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", "private": false, + "publishConfig": { + "access": "public" + }, "scripts": { "prepublishOnly": "mkdir -p dist && rm -rf dist && tsc -p .", "lint": "tslint -p .", From bf0ee7342c6299b65f3f2dc546e588eed4fea930 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 6 Mar 2024 11:26:48 +0000 Subject: [PATCH 08/23] chore(release): 1.0.0-prerelease.6 [skip ci] # [1.0.0-prerelease.6](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.5...v1.0.0-prerelease.6) (2024-03-06) ### Bug Fixes * **release:** make package public ([cc5dcab](https://github.com/jamesbuddrige/semantic-release-jira/commit/cc5dcab2ebed352c9135896d4a9a23d9af477f7e)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 446be9f..745b254 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.5", + "version": "1.0.0-prerelease.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "semantic-release-jira-releases", - "version": "1.0.0-prerelease.5", + "version": "1.0.0-prerelease.6", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index b25673e..70a70aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.5", + "version": "1.0.0-prerelease.6", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 2fb9a2754cc210335ee5574766e57399752f22dc Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Wed, 6 Mar 2024 11:32:54 +0000 Subject: [PATCH 09/23] docs(readme): update README links to point to the new, maintained package --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 286e622..cc452cf 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,7 @@ [**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to publish a jira release. -[![Travis](https://img.shields.io/travis/UpHabit/semantic-release-jira-releases.svg)](https://travis-ci.org/UpHabit/semantic-release-jira-releases) - -[![npm latest version](https://img.shields.io/npm/v/semantic-release-jira-releases/latest.svg)](https://www.npmjs.com/package/semantic-release-jira-releases) +[![npm latest version](https://img.shields.io/npm/v/@jamesbuddrige/semantic-release-jira/latest.svg)](https://www.npmjs.com/package/@jamesbuddrige/semantic-release-jira) | Step | Description | @@ -15,8 +13,8 @@ ## Install ```bash -$ npm install --save-dev semantic-release-jira-releases -$ yarn add --dev semantic-release-jira-releases +$ npm install --save-dev @jamesbuddrige/semantic-release-jira +$ yarn add --dev @jamesbuddrige/semantic-release-jira ``` ### Configuration From f43a5ffefd480b75035569f0f5cced5666db4103 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Thu, 7 Mar 2024 23:28:48 +0000 Subject: [PATCH 10/23] chore(lint): add linting with eslint --- .eslintrc.js | 32 ++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..a3486dd --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,32 @@ +module.exports = { + "env": { + "es2021": true + }, + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ], + "overrides": [ + { + "env": { + "node": true + }, + "files": [ + ".eslintrc.{js,cjs}" + ], + "parserOptions": { + "sourceType": "script" + } + } + ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": [ + "@typescript-eslint" + ], + "rules": { + } +} diff --git a/package-lock.json b/package-lock.json index 745b254..1a67207 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "semantic-release-jira-releases", + "name": "@jamesbuddrige/semantic-release-jira", "version": "1.0.0-prerelease.6", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "semantic-release-jira-releases", + "name": "@jamesbuddrige/semantic-release-jira", "version": "1.0.0-prerelease.6", "license": "MIT", "dependencies": { From 3da426b3b9ba1d741bb92b9f9fde190a73809446 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Thu, 7 Mar 2024 23:32:44 +0000 Subject: [PATCH 11/23] fix(docs): use correct documentation (needs fix for release) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc452cf..bec40e5 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ The plugin should be added to your config "@semantic-release/release-notes-generator", "@semantic-release/git", ["semantic-release-jira-releases", { - "projectId": "UH", + "projectId": "ABC", "releaseNameTemplate": "Test v${version}", - "jiraHost": "uphabit.atlassian.net", + "jiraHost": "jira-domain.atlassian.net", "ticketPrefixes": [ "TEST", "UH"], "ticketRegex": "[a-zA-Z]{3,5}-\\d{3,5}" }] From ba0bb4ec24c9167fdfedeaf04f377217b27ecce4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 7 Mar 2024 23:33:15 +0000 Subject: [PATCH 12/23] chore(release): 1.0.0-prerelease.7 [skip ci] # [1.0.0-prerelease.7](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.6...v1.0.0-prerelease.7) (2024-03-07) ### Bug Fixes * **docs:** use correct documentation (needs fix for release) ([3da426b](https://github.com/jamesbuddrige/semantic-release-jira/commit/3da426b3b9ba1d741bb92b9f9fde190a73809446)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a67207..b00c259 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.6", + "version": "1.0.0-prerelease.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.6", + "version": "1.0.0-prerelease.7", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index 70a70aa..f972bf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.6", + "version": "1.0.0-prerelease.7", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 4dbae465d7f81880b958bf733a11d583b3b3f8e3 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Thu, 7 Mar 2024 23:36:54 +0000 Subject: [PATCH 13/23] ci(scripts): update scripts for linting and remove unused --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 70a70aa..e853870 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ "access": "public" }, "scripts": { - "prepublishOnly": "mkdir -p dist && rm -rf dist && tsc -p .", - "lint": "tslint -p .", + "lint": "eslint . --ext .ts", "build": "tsc -p .", "test": " jest" }, From 4542bce72893a12948ed80369697dc451a28f382 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Thu, 7 Mar 2024 23:52:46 +0000 Subject: [PATCH 14/23] fix(readme.md): fix incorrect plugin documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bec40e5..520a34f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ The plugin should be added to your config "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/git", - ["semantic-release-jira-releases", { + ["@jamesbuddrige/semantic-release-jira", { "projectId": "ABC", "releaseNameTemplate": "Test v${version}", "jiraHost": "jira-domain.atlassian.net", From 5084d727311aca0e30fc407539739ae68057673d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 7 Mar 2024 23:53:16 +0000 Subject: [PATCH 15/23] chore(release): 1.0.0-prerelease.8 [skip ci] # [1.0.0-prerelease.8](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.7...v1.0.0-prerelease.8) (2024-03-07) ### Bug Fixes * **readme.md:** fix incorrect plugin documentation ([4542bce](https://github.com/jamesbuddrige/semantic-release-jira/commit/4542bce72893a12948ed80369697dc451a28f382)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b00c259..308b734 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.7", + "version": "1.0.0-prerelease.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.7", + "version": "1.0.0-prerelease.8", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index b63dfad..9513ca2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.7", + "version": "1.0.0-prerelease.8", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 8c3e7809d06b10f6e7a928c2c706b2bb9d7b48a3 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Thu, 7 Mar 2024 23:59:49 +0000 Subject: [PATCH 16/23] feat: add Jira Auth as env for semrel --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ec4da0..defb05e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,3 +28,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + JIRA_AUTH: ${{ secrets.JIRA_AUTH }} From 87efa94cc5e75bdf6bfe9a07a105bd009f058b8f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 8 Mar 2024 00:01:17 +0000 Subject: [PATCH 17/23] chore(release): 1.0.0-prerelease.9 [skip ci] # [1.0.0-prerelease.9](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.8...v1.0.0-prerelease.9) (2024-03-08) ### Features * add Jira Auth as env for semrel ([8c3e780](https://github.com/jamesbuddrige/semantic-release-jira/commit/8c3e7809d06b10f6e7a928c2c706b2bb9d7b48a3)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 308b734..081593d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.8", + "version": "1.0.0-prerelease.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.8", + "version": "1.0.0-prerelease.9", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index 9513ca2..d42e4b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.8", + "version": "1.0.0-prerelease.9", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 2f8cbb15d9fd081fac9ebcc956f4578380e039c4 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Fri, 8 Mar 2024 00:36:23 +0000 Subject: [PATCH 18/23] fix(description): re-word release description --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 520a34f..7fb1f5f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The plugin should be added to your config ["@jamesbuddrige/semantic-release-jira", { "projectId": "ABC", "releaseNameTemplate": "Test v${version}", - "jiraHost": "jira-domain.atlassian.net", + "jiraHost": "https://jira-domain.atlassian.net", "ticketPrefixes": [ "TEST", "UH"], "ticketRegex": "[a-zA-Z]{3,5}-\\d{3,5}" }] From c68de8dc235a7a4eba0a285fe4764ea228c25fe0 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 8 Mar 2024 00:36:56 +0000 Subject: [PATCH 19/23] chore(release): 1.0.0-prerelease.10 [skip ci] # [1.0.0-prerelease.10](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.9...v1.0.0-prerelease.10) (2024-03-08) ### Bug Fixes * **description:** re-word release description ([2f8cbb1](https://github.com/jamesbuddrige/semantic-release-jira/commit/2f8cbb15d9fd081fac9ebcc956f4578380e039c4)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 081593d..be9f7e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.9", + "version": "1.0.0-prerelease.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.9", + "version": "1.0.0-prerelease.10", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index d42e4b6..7771cfe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.9", + "version": "1.0.0-prerelease.10", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 98f5031dec491161511f312aef20c7d8e363cfd0 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Fri, 8 Mar 2024 00:46:53 +0000 Subject: [PATCH 20/23] feat(jtp-1): only run release for full releases --- lib/success.ts | 6 ++++++ lib/types.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/success.ts b/lib/success.ts index aa70628..df8db47 100644 --- a/lib/success.ts +++ b/lib/success.ts @@ -91,6 +91,12 @@ async function editIssueFixVersions(config: PluginConfig, context: GenerateNotes } export async function success(config: PluginConfig, context: GenerateNotesContext): Promise { + // Confirm it's a not a pre-release (undefined), otherwise we don't want to create a release in Jira + if (context.nextRelease.channel === undefined) { + context.logger.info(`Skipping release creation for pre-release`); + return; + } + const tickets = getTickets(config, context); context.logger.info(`Found ticket ${tickets.join(', ')}`); diff --git a/lib/types.ts b/lib/types.ts index 88276a4..9c9513e 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -40,6 +40,7 @@ export interface PreviousRelease { export interface UpcomingRelease extends PreviousRelease { notes: string; type: string; + channel: string; } export interface GenerateNotesContext extends PluginContext { From aaf49505e33cc08363ba58542a5afb635a8cd020 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 8 Mar 2024 00:47:42 +0000 Subject: [PATCH 21/23] chore(release): 1.0.0-prerelease.11 [skip ci] # [1.0.0-prerelease.11](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.10...v1.0.0-prerelease.11) (2024-03-08) ### Features * **jtp-1:** only run release for full releases ([98f5031](https://github.com/jamesbuddrige/semantic-release-jira/commit/98f5031dec491161511f312aef20c7d8e363cfd0)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index be9f7e7..8670c97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.10", + "version": "1.0.0-prerelease.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.10", + "version": "1.0.0-prerelease.11", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index 7771cfe..71bc497 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.10", + "version": "1.0.0-prerelease.11", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT", From 4ecfc5686f536d2e9421e57f58738c81fda2a871 Mon Sep 17 00:00:00 2001 From: jamesbuddrige Date: Fri, 8 Mar 2024 00:56:32 +0000 Subject: [PATCH 22/23] fix(release-requirement): only run releases on main distribution, not others --- lib/success.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/success.ts b/lib/success.ts index df8db47..7a5c36b 100644 --- a/lib/success.ts +++ b/lib/success.ts @@ -92,9 +92,11 @@ async function editIssueFixVersions(config: PluginConfig, context: GenerateNotes export async function success(config: PluginConfig, context: GenerateNotesContext): Promise { // Confirm it's a not a pre-release (undefined), otherwise we don't want to create a release in Jira - if (context.nextRelease.channel === undefined) { + if (context.nextRelease.channel !== undefined) { context.logger.info(`Skipping release creation for pre-release`); return; + } else { + context.logger.info(`Creating release for main channel: ${context.nextRelease.version}`); } const tickets = getTickets(config, context); From 4faa302c472e17062f77d6cd8538870c9081203b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 8 Mar 2024 00:57:06 +0000 Subject: [PATCH 23/23] chore(release): 1.0.0-prerelease.12 [skip ci] # [1.0.0-prerelease.12](https://github.com/jamesbuddrige/semantic-release-jira/compare/v1.0.0-prerelease.11...v1.0.0-prerelease.12) (2024-03-08) ### Bug Fixes * **release-requirement:** only run releases on main distribution, not others ([4ecfc56](https://github.com/jamesbuddrige/semantic-release-jira/commit/4ecfc5686f536d2e9421e57f58738c81fda2a871)) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8670c97..ac9fd50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.11", + "version": "1.0.0-prerelease.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.11", + "version": "1.0.0-prerelease.12", "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", diff --git a/package.json b/package.json index 71bc497..a181c0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jamesbuddrige/semantic-release-jira", - "version": "1.0.0-prerelease.11", + "version": "1.0.0-prerelease.12", "main": "dist/lib/index.js", "repository": "https://github.com/jamesbuddrige/semantic-release-jira", "license": "MIT",