Skip to content

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

@technick9000

Description

@technick9000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions