Zum Inhalt springen

Plugin: analyzer-conventional

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Determines the next SemVer bump from Conventional Commit messages. It maps commit types and breaking-change markers to major, minor, or patch decisions.

Terminal window
go install github.com/SemRels/analyzer-conventional@latest

Each plugin is a standalone Go binary. Keep it on your PATH or reference it with path: in .semrel.yaml. If you keep secrets in a .env file, load them with semrel --env-file .env release.

version: 1
plugins:
- name: analyzer-conventional
path: analyzer-conventional
args:
breaking_change_label: 'BREAKING CHANGE'
minor_types: feat
patch_types: 'fix,perf,refactor'
NameRequiredDefaultDescription
SEMREL_PLUGIN_BREAKING_CHANGE_LABELnoBREAKING CHANGEFooter label used to detect breaking changes.
SEMREL_PLUGIN_MINOR_TYPESnofeatComma-separated commit types that trigger a minor bump.
SEMREL_PLUGIN_PATCH_TYPESnofix,perf,refactorComma-separated commit types that trigger a patch bump.

This plugin does not require any of the shared SEMREL_* release context variables to do its job.

Given the commits feat(api): add search endpoint and fix(ui): handle empty state, the analyzer returns a minor bump because feat outranks fix.