Skip to content

Plugin: hook-jira

Updates Jira release metadata after SemRel publishes a version. It is useful for creating or updating fix versions and aligning Jira projects with shipped SemVer releases.

Terminal window
semrel plugin install @semrel/hook-jira

semrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.

Pre-built, signed multi-platform images (linux/amd64, linux/arm64) are published on every release:

Terminal window
docker pull ghcr.io/semrels/hook-jira:latest

Verify the image signature with cosign:

Terminal window
cosign verify ghcr.io/semrels/hook-jira:latest \
--certificate-identity-regexp 'https://github.com/SemRels/hook-jira/.github/workflows/release.yml.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
version: 1
plugins:
- uses: @semrel/hook-jira
args:
base_url: 'https://jira.example.com'
# token is read from SEMREL_PLUGIN_TOKEN env var
project: SEMREL
fix_version_template: '{{ .NextVersion }}'
NameRequiredDefaultDescription
SEMREL_PLUGIN_BASE_URLyesBase URL for the Jira instance.
SEMREL_PLUGIN_TOKENyesAPI token for Jira authentication.
SEMREL_PLUGIN_PROJECTyesJira project key.
SEMREL_PLUGIN_FIX_VERSION_TEMPLATEnoplugin-definedTemplate used to name the Jira fix version.
  • SEMREL_TAG_NAME
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_BUMP
  • SEMREL_BRANCH
  • SEMREL_CHANGELOG
  • SEMREL_DRY_RUN

With fix_version_template: '{{ .NextVersion }}', a release to v1.4.0 can create or update the Jira fix version 1.4.0 in the configured project.