diff --git a/.changeset/commithelper-passthrough.md b/.changeset/commithelper-passthrough.md deleted file mode 100644 index 4d133f4..0000000 --- a/.changeset/commithelper-passthrough.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@naverpay/commithelper-go": minor ---- - -Add `passthrough` for verbatim Jira/Linear-style issue keys, plus two tagging fixes and a bundled JSON schema. - -- **`passthrough`.** List the project keys to recognize (e.g. `"passthrough": ["PROJ", "OPS"]`); a branch like `feature/PROJ-1871` is tagged `[PROJ-1871]`. Key recognition matches Jigit (`-<1–7 digit number>`, found anywhere in the branch), so a listed project links identically in commithelper and Jigit. Only listed projects are tagged, so unrelated `UPPERCASE-NUMBER` tokens (e.g. `UTF-8`) are not mistaken for issues. `rules` (GitHub prefixes) take precedence when a branch matches both. -- **Idempotent re-tagging.** A message is left unchanged when the branch's reference is already present as a whole token, so `git commit --amend` and hook re-runs never stack tags — including template tags placed in the message body. -- **Protected branches** are evaluated before the already-tagged check, so a pre-tagged message cannot bypass `protect`. -- **`schema.json`** is bundled in the package; reference it via `"$schema": "./node_modules/@naverpay/commithelper-go/schema.json"` for editor autocompletion and validation (works offline, no CDN). diff --git a/packages/commithelper-go-darwin-arm64/CHANGELOG.md b/packages/commithelper-go-darwin-arm64/CHANGELOG.md index 9ac51f8..36577ee 100644 --- a/packages/commithelper-go-darwin-arm64/CHANGELOG.md +++ b/packages/commithelper-go-darwin-arm64/CHANGELOG.md @@ -1,5 +1,7 @@ # @naverpay/commithelper-go-darwin-arm64 +## 1.4.0 + ## 1.3.1 ## 1.3.0 diff --git a/packages/commithelper-go-darwin-arm64/package.json b/packages/commithelper-go-darwin-arm64/package.json index f7c5036..54007eb 100644 --- a/packages/commithelper-go-darwin-arm64/package.json +++ b/packages/commithelper-go-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@naverpay/commithelper-go-darwin-arm64", - "version": "1.3.1", + "version": "1.4.0", "description": "macOS ARM64 binary for @naverpay/commithelper-go", "os": [ "darwin" diff --git a/packages/commithelper-go-darwin-x64/CHANGELOG.md b/packages/commithelper-go-darwin-x64/CHANGELOG.md index daf2bd8..e48ed52 100644 --- a/packages/commithelper-go-darwin-x64/CHANGELOG.md +++ b/packages/commithelper-go-darwin-x64/CHANGELOG.md @@ -1,5 +1,7 @@ # @naverpay/commithelper-go-darwin-x64 +## 1.4.0 + ## 1.3.1 ## 1.3.0 diff --git a/packages/commithelper-go-darwin-x64/package.json b/packages/commithelper-go-darwin-x64/package.json index b891685..6f7696e 100644 --- a/packages/commithelper-go-darwin-x64/package.json +++ b/packages/commithelper-go-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@naverpay/commithelper-go-darwin-x64", - "version": "1.3.1", + "version": "1.4.0", "description": "macOS x64 binary for @naverpay/commithelper-go", "os": [ "darwin" diff --git a/packages/commithelper-go-linux-x64/CHANGELOG.md b/packages/commithelper-go-linux-x64/CHANGELOG.md index e14d81a..c310819 100644 --- a/packages/commithelper-go-linux-x64/CHANGELOG.md +++ b/packages/commithelper-go-linux-x64/CHANGELOG.md @@ -1,5 +1,7 @@ # @naverpay/commithelper-go-linux-x64 +## 1.4.0 + ## 1.3.1 ## 1.3.0 diff --git a/packages/commithelper-go-linux-x64/package.json b/packages/commithelper-go-linux-x64/package.json index 6a4c648..d74f3b1 100644 --- a/packages/commithelper-go-linux-x64/package.json +++ b/packages/commithelper-go-linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "@naverpay/commithelper-go-linux-x64", - "version": "1.3.1", + "version": "1.4.0", "description": "Linux x64 binary for @naverpay/commithelper-go", "os": [ "linux" diff --git a/packages/commithelper-go-win32-x64/CHANGELOG.md b/packages/commithelper-go-win32-x64/CHANGELOG.md index eec8836..3c6e2c7 100644 --- a/packages/commithelper-go-win32-x64/CHANGELOG.md +++ b/packages/commithelper-go-win32-x64/CHANGELOG.md @@ -1,5 +1,7 @@ # @naverpay/commithelper-go-win32-x64 +## 1.4.0 + ## 1.3.1 ## 1.3.0 diff --git a/packages/commithelper-go-win32-x64/package.json b/packages/commithelper-go-win32-x64/package.json index bb09b26..85d83d6 100644 --- a/packages/commithelper-go-win32-x64/package.json +++ b/packages/commithelper-go-win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "@naverpay/commithelper-go-win32-x64", - "version": "1.3.1", + "version": "1.4.0", "description": "Windows x64 binary for @naverpay/commithelper-go", "os": [ "win32" diff --git a/packages/commithelper-go/CHANGELOG.md b/packages/commithelper-go/CHANGELOG.md index d25e8d2..878c025 100644 --- a/packages/commithelper-go/CHANGELOG.md +++ b/packages/commithelper-go/CHANGELOG.md @@ -1,5 +1,16 @@ # @naverpay/commithelper-go +## 1.4.0 + +### Minor Changes + +- bea4bcc: Add `passthrough` for verbatim Jira/Linear-style issue keys, plus two tagging fixes and a bundled JSON schema. + + - **`passthrough`.** List the project keys to recognize (e.g. `"passthrough": ["PROJ", "OPS"]`); a branch like `feature/PROJ-1871` is tagged `[PROJ-1871]`. Key recognition matches Jigit (`-<1–7 digit number>`, found anywhere in the branch), so a listed project links identically in commithelper and Jigit. Only listed projects are tagged, so unrelated `UPPERCASE-NUMBER` tokens (e.g. `UTF-8`) are not mistaken for issues. `rules` (GitHub prefixes) take precedence when a branch matches both. + - **Idempotent re-tagging.** A message is left unchanged when the branch's reference is already present as a whole token, so `git commit --amend` and hook re-runs never stack tags — including template tags placed in the message body. + - **Protected branches** are evaluated before the already-tagged check, so a pre-tagged message cannot bypass `protect`. + - **`schema.json`** is bundled in the package; reference it via `"$schema": "./node_modules/@naverpay/commithelper-go/schema.json"` for editor autocompletion and validation (works offline, no CDN). + ## 1.3.1 ### Patch Changes diff --git a/packages/commithelper-go/package.json b/packages/commithelper-go/package.json index 9ec820c..5d3ccd0 100644 --- a/packages/commithelper-go/package.json +++ b/packages/commithelper-go/package.json @@ -1,6 +1,6 @@ { "name": "@naverpay/commithelper-go", - "version": "1.3.1", + "version": "1.4.0", "description": "A CLI tool to assist with commit messages based on branch names and configuration.", "bin": { "commithelper-go": "bin/cli.js"