Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semantic-release dosen't work if JIRA ticket is set to pre-type #85

Open
technick9000 opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@technick9000
Copy link

technick9000 commented Sep 19, 2024

I've configured my commits' subject to be in the format as JIRA-9999 | <type>(scope): <description>

When running semantic-release no releases are detected. Using conventionalcommits preset for the @semantic-release/commit-analyzer

E.g. commit message JIRA-9999 | feat: test

Here's my config in package.json

"config": {
    "commitizen": {
      "path": "./node_modules/@digitalroute/cz-conventional-changelog-for-jira",
      "jiraMode": true,
      "jiraPrefix": "JIRA",
      "jiraLocation": "pre-type",
      "jiraAppend": " |",
      "exclamationMark": true
    }
  },

Attempted: different that works on matching the string but headerPattern RegEx in the parserOpts for the config of @semantic-release/commit-analyzer

RegEx - /(\w*)(?:\((.*)\))?!?: (.*)$/gi

If the jira position is moved, e.g. pre-description - semantic-release works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant