Skip to content

Ignore default rules #122

@landau

Description

@landau

Good day -

I'm looking for support. The documentation states:

If you define custom release rules the default rules will be used if nothing matched.

Is it possible to disable/override that behavior? My goal is to set this plugin t to match for specific scope. In other words, the commit analyzer should only match commits that look something like fix(service/deps): Use express@4.3.2. The plugin should not match a commit that looks like fix(deps): Use express@4.3.2 or anything without a scope of service*. I'm using specific scopes because my particular use case is within a monorepo and certain packages should not be published if the commit is unrelated.

"plugins": [
    [
      "@semantic-release/commit-analyzer",
      {
        "preset": "angular",
        "releaseRules": [
          { "breaking": true, "scope": "/service.*/", "release": "major" },
          { "revert": true, "scope": "/service.*/", "release": "patch" },
          { "type": "feat", "scope": "/service.*/", "release": "minor" },
          { "type": "fix", "scope": "/service.*/", "release": "patch" },
          { "type": "perf", "scope": "/service.*/", "release": "patch" }
        ]
      }
    ]
]

Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions