Skip to content

[ticket-id] type(scope): message header format does not trigger any release #3227

Discussion options

You must be logged in to vote

From our commit lint we produced the following semantic release configuration:

/**
 * @type {import('semantic-release').GlobalConfig}
 */

const parserOpts = {
  headerPattern: /^(?:\[([A-z]*-\d+)]\s)?(\w*)(?:\((.*)\))?!?:\s(.*)$/,
  headerCorrespondence: ["ticket", "type", "scope", "subject"],
};

const presetConfig = {
  issuePrefixes: ["TGW-"],
  issueUrlFormat: "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
};

module.exports = {
  branches: ["main", "next"],
  plugins: [
    [
      "@semantic-release/commit-analyzer",
      {
        preset: "conventionalcommits",
        presetConfig,
        releaseRules: [
          { breaking: true, release: "major" },
          { revert: true,

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@SalahAdDin
Comment options

@travi
Comment options

@SalahAdDin
Comment options

@SalahAdDin
Comment options

Answer selected by SalahAdDin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants