Skip to content

feat: make the use of default release rules optional#211

Open
oscarcarlstrom wants to merge 2 commits into
semantic-release:masterfrom
oscarcarlstrom:master
Open

feat: make the use of default release rules optional#211
oscarcarlstrom wants to merge 2 commits into
semantic-release:masterfrom
oscarcarlstrom:master

Conversation

@oscarcarlstrom

Copy link
Copy Markdown

Ignore default release rules by setting useDefaultReleaseRules: false in the plugin config.

Oscar Carlstrom and others added 2 commits January 22, 2021 09:02
Ignore default release rules by setting useDefaultReleaseRules: false in the plugin config.
@donaldxdonald

Copy link
Copy Markdown

need this

@dawidvdh

Copy link
Copy Markdown

Could we get this merged? or is there another option to filter by a certain scope and not fallback?

@itaispiegel

Copy link
Copy Markdown

I also need this PR. When is this planned to be released?

@ajdavey8

ajdavey8 commented Aug 9, 2023

Copy link
Copy Markdown

Could this or #378 be merged? Also need this

@haydn

haydn commented Feb 13, 2025

Copy link
Copy Markdown

If anyone is looking for an easy way to get this functionality, we're maintaining a fork (that we'll keep up-to-date with the upstream) which adds a disableDefaultReleaseRules option:

https://github.com/WorkniceHR/commit-analyzer

You can install it straight from the GitHub repo:

npm install WorkniceHR/commit-analyzer --save-dev

And then configure semantic-commit like this:

{
  "plugins": [
    [
      "@worknice/commit-analyzer", // ← updated which plugin to use
      {
        "preset": "angular",
        "releaseRules": [
          { "type": "docs", "scope": "README", "release": "patch" },
          { "type": "refactor", "release": "patch" },
          { "type": "style", "release": "patch" }
        ],
        "disableDefaultReleaseRules": true, // ← set the new disable option
      }
    ]
  ]
}

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

Successfully merging this pull request may close these issues.

6 participants