Determines the semantic version bump from Conventional Commit messages.
This plugin is distributed as the standalone Go binary semrel-plugin-analyzer-conventional. Semrel executes the binary as a subprocess, provides plugin configuration through SEMREL_PLUGIN_* environment variables, provides release context through SEMREL_* environment variables, reads standard output, and treats exit code 0 as success and any non-zero exit code as failure. Install the binary in ~/.semrel/plugins/ or anywhere on your $PATH.
go install github.com/SemRels/analyzer-conventional/cmd/plugin@latestplugins:
- name: analyzer-conventional
path: ~/.semrel/plugins/semrel-plugin-analyzer-conventional
env:
SEMREL_PLUGIN_BREAKING_CHANGE_LABEL: "BREAKING CHANGE"
SEMREL_PLUGIN_MINOR_TYPES: "feat"
SEMREL_PLUGIN_PATCH_TYPES: "fix,perf,refactor"| Name | Required | Description | Default |
|---|---|---|---|
SEMREL_PLUGIN_BREAKING_CHANGE_LABEL |
Optional | Label used to detect breaking changes in commit messages. | BREAKING CHANGE |
SEMREL_PLUGIN_MINOR_TYPES |
Optional | Comma-separated commit types that trigger a minor release. | feat |
SEMREL_PLUGIN_PATCH_TYPES |
Optional | Comma-separated commit types that trigger a patch release. | fix,perf,refactor |
| Variable | Description |
|---|---|
SEMREL_BUMP |
Calculated bump level such as major, minor, or patch. |
The plugin reads commit history, classifies commits using Conventional Commit rules, and emits the resulting bump decision for semrel to use.
Apache-2.0