Changelog

You may define either content or contentTemplate, with the latter taking precedence over the former.

Changelog formatting applies only to the automatically generated changelog, that is, formatting won’t occur if the external property is set. Format applies only to local commits at the moment, the use of labelers is highly encouraged.

The changelog.format property only accepts the following name templates:

Key Description

commitShortHash

head commit hash abbreviated to 7 characters

commitFullHash

head commit hash

commitTitle

first line of the commit message

commitAuthor

full name of the commit author

commitsUrl

commits URl as provided by the Git host

The content and contentTemplate accept all Name Templates, take special consideration on {{changelogChanges}} and {{changelogContributors}} as they define the parsed commits.

Templates

The default location for templates is:

src/jreleaser/templates

The following list shows the filenames that may be used to override default templates:

  • changelog.tpl

Commits

If you wish to generate the changelog between two tags, with tags in between, you may configure previousTagName. It generates the changelog based on all commits between the two tags. (git log <previousTagName>…​<tagName>).

If not defined, it will default to the logical previous tag of the defined tagName.

Contributors

Contributor names are added to the formatted changelog by default. You may choose to provide a custom format or disable this behavior completely. The contributors.format property accepts the following templates:

Key Description

contributorName

the contributor’s name as plain text

contributorNameAsLink

the contributor’s name as a link

contributorUsername

the contributor’s username as plain text

contributorUsernameAsLink

the contributor’s username as a link

The use of {{contributorNameAsLink}}, {{contributorUsername}}, or {{contributorUsernameAsLink}} incurs on a network call to the remote service to find out information related to the given contributor.

Use a - or * character as prefix in format to list each contributor on its own row.

The following configuration

release:
  github:
    username: aalmiray
    overwrite: true
    draft: false
    sign: true
    changelog:
      formatted: ALWAYS
      format: '- {{commitShortHash}} {{commitTitle}}'
      labelers:
        - label: 'feature'
          title: 'Resolves #'
          body: 'Resolves #'
        - label: 'issue'
          title: 'Fixes #'
          body: 'Fixes #'
        - label: 'issue'
          title: 'Relates to #'
          body: 'Relates to #'
        - label: 'task'
          title: '[chore]'
      categories:
        - title: '๐Ÿš€ Features'
          key: 'features'
          labels:
            - 'feature'
        - title: 'โœ… Issues'
          key: 'issues'
          labels:
            - 'issue'
        - title: '๐Ÿงฐ Tasks'
          key: 'tasks'
          labels:
            - 'task'
      replacers:
        - search: '\[chore\] '

Generates a changelog similar to

jreleaser changelog render

Order

Both labelers and categories will be ordered based on their declared location however you may change this order by explicitly setting a value for their order property. The lower the number the higher the priority. The value of the order property must be unique.

Presets

Presets define conventions applicable to:

  • labelers

  • categories

  • replacers

  • hide

    • categories

    • contributors

You may apply a preset while at the same time define additional elements. Your configuration takes precedence over the preset’s, allowing you to add/merge. For the time being you can’t remove a setting defined by a preset.

Conventional Commits

Commit messages that follow the Conventional Commits specification will be automatically labeled and categorized. The following table shows mappings that you may use when this preset is applied:

Category Key Order Label Prefix Order

๐Ÿ”€ Merge

merge

0

merge

Merge pull

0

๐Ÿ”€ Merge

merge

0

merge

Merge branch

5

๐Ÿš€ Features

features

10

feat

feat:

50

๐Ÿ› Fixes

fixes

20

fix

fix:

60

๐Ÿ”„ Changes

changes

30

perf

perf:

70

๐Ÿ”„ Changes

changes

30

refactor

refactor:

80

๐Ÿ”„ Changes

changes

30

revert

revert:

90

๐Ÿ”„ Changes

changes

30

style

style:

100

๐Ÿงฐ Tasks

tasks

40

chore

chore:

20

๐Ÿ›  Build

build

50

test

test:

110

๐Ÿ›  Build

build

50

build

build:

10

๐Ÿ›  Build

build

50

ci

ci:

30

๐Ÿ“ Documentation

docs

60

docs

docs:

40

You may define an optional scope as part of the prefix, such as fix(core) or feat(plugins). A ! in the prefix will be replaced with a ๐Ÿšจ emoji. All prefixes will be removed except for their scope. The following commits

feat: Add download urls
fix: Fix typos
fix(core): Add missing checks in loader
fix(engine)!: Plugins require custom classloader

Will be rendered as

## Features

3adf1b5 Add download urls

## Fixes

47e2a81 Fix typos
ea65d99 (core) Add missing checks in loader
8ac258c ๐Ÿšจ (engine) Plugins require custom classloader
Use the key value to match a category and change its settings.

Example

The following configuration

release:
  github:
    changelog:
      formatted: ALWAYS
      preset: 'conventional-commits'
      format: '- {{commitShortHash}} {{commitTitle}}'

For a project with the following commits

* bda315f (HEAD -> main, upstream/main) docs: Add missing "`". (#1048)
* 3adf1b5 fix: Do not force .java suffix for Quarkus based templates (#1039)
* 013f328 feat: Startup scripts now use User-Agent header for downloads (#1037)
* 47e2a81 fix: This fixes extraneous jbang.cmd output (#1041)
* fe08627 refactor: Simplified `jbang.cmd` (#1038)
* ea65d99 fix: add hint to user they can get updated catalog using --fresh (#1040)
* 8ac258c fix: No longer pass Accept header (#1036)
* 95a715e [patch] fix linux based java download
* 275d31a fix: archive type for foojay. Fixes #1035
* d42951d [patch]
* 98866f1 fix: Add itest for issue #1019 (#1033)
* 20514c7 fix: Now really fixed updating on Windows (#1031)
* 9ed4116 [minor]
* fb45502 chore: use jreleaser 0.7
* 7419590 fix: edit now honors JBANG_EDITOR again
* 3955647 fix: Not checking for new version on first run anymore (#1023)
* 5e16e22 fix:  jbang edit suggests incorrect command when template renames outโ€ฆ (#1020)
* 3ac5561 fix: --deps now gets special javafx treatments as //DEPS does (#1017)
* 52b2377 fix: Fixed link to "Usage on Windows" (#1026)
* 8d5ea6a fix: Fixed download URL in `jbang` script (#1021)
* b750ebb fix: kotlin edit now link to source rather than cache location (#1015)
* 6f87c70 chore: eliminate warnings from code base (#1011)
* f842666 docs: Update spotless pre-commit hook url (#1009)
* d297667 [patch] fix java 17 downloads
* f6a32db fix: use termurin for java 17
* 43b2c72 chore: remove j'bang from choco name, its just JBang
* da0c971 fix: proper nuget
* 30cf637 (tag: v0.80.1) [patch]

Generates a changelog similar to

jreleaser changelog preset conventional commits

Gitmoji

Commit messages that follow the Gitmoji convention will be automatically labeled and categorized. The following table shows mappings that you may use when this preset is applied:

Category Key Order Label Emoji Keyword

๐Ÿ”€ Merge

merge

0

merge

๐Ÿ”€

:twisted_rightwards_arrows:

๐Ÿš€ Added

added

10

added

โœจ

:sparkles:

๐Ÿš€ Added

added

10

added

๐ŸŽ‰

:tada:

๐Ÿš€ Added

added

10

added

โœ…

:white_check_mark:

๐Ÿš€ Added

added

10

added

๐Ÿ‘ท

:construction_worker:

๐Ÿš€ Added

added

10

added

๐Ÿ“ˆ

:chart_with_upwards_trend:

๐Ÿš€ Added

added

10

added

โž•

:heavy_plus_sign:

๐Ÿš€ Added

added

10

added

๐Ÿ”Š

:loud_sound:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐ŸŽจ

:art:

๐Ÿ”„๏ธ Changed

changed

20

changed

โšก๏ธ

:zap:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ’„

:lipstick:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿšจ

:rotating_light:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ“Œ

:pushpin:

๐Ÿ”„๏ธ Changed

changed

20

changed

โ™ป๏ธ

:recycle:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ”ง

:wrench:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ”จ

:hammer:

๐Ÿ”„๏ธ Changed

changed

20

changed

โช

:rewind:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ‘ฝ

:alien:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿšš

:truck:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿฑ

:bento:

๐Ÿ”„๏ธ Changed

changed

20

changed

โ™ฟ๏ธ

:wheelchair:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ’ฌ

:speech_balloon:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ—ƒ

:card_file_box:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿšธ

:children_crossing:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ—

:building_construction:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ“ฑ

:iphone:

๐Ÿ”„๏ธ Changed

changed

20

changed

๐Ÿ“ฆ

:package:

๐Ÿšจ Breaking

breaking

30

breaking_changes

๐Ÿ’ฅ

:boom:

๐Ÿ’ฅ Deprecated

deprecated

40

deprecated

๐Ÿ—‘

:wastebasket:

๐Ÿ—‘ Removed

removed

50

Removed

โž–

:heavy_minus_sign:

๐Ÿ—‘ Removed

removed

50

Removed

๐Ÿ”ฅ

:fire:

๐Ÿ—‘ Removed

removed

50

Removed

๐Ÿ”‡

:mute:

๐Ÿ—‘ Removed

removed

50

Removed

โšฐ๏ธ

:coffin:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿ›

:bug:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿš‘

:ambulance:

๐Ÿ› Fixed

fixed

60

fixed

๐ŸŽ

:apple:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿ

:green_apple:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿง

:penguin:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿ

:checkered_flag:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿค–

:robot:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿ’š

:green_heart:

๐Ÿ› Fixed

fixed

60

fixed

โœ๏ธ

:pencil2:

๐Ÿ› Fixed

fixed

60

fixed

๐Ÿฉน๏ธ

:adhesive_bandage:

๐Ÿ”’๏ธ Security

security

70

security

๐Ÿ”’๏ธ

:lock:

๐Ÿ”’๏ธ Security

security

70

security

๐Ÿ›‚

:passport_control:

๐Ÿ“ฆ Dependencies

deps

80

dependencies

โฌ†๏ธ

:arrow_up:

๐Ÿ“ฆ Dependencies

deps

80

dependencies

โฌ‡๏ธ

:arrow_down:

๐Ÿ“ Documentation

docs

90

documentation

๐Ÿ“

:pencil:

๐Ÿ“ Documentation

docs

90

documentation

๐Ÿ“

:memo:

๐Ÿ“ Documentation

docs

90

documentation

๐ŸŒ

:globe_with_meridians:

๐Ÿ“ Documentation

docs

90

documentation

๐Ÿ“„

:page_facing_up:

๐Ÿ“ Documentation

docs

90

documentation

๐Ÿ’ก

:bulb:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ’ฉ

:poop:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿšง

:construction:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿป

:beers:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ‘ฅ

:busts_in_silhouette:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿคก

:clown_face:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿฅš

:egg:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ™ˆ

:see_no_evil:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ“ธ

:camera_flash:

๐ŸŽฒ Miscellaneous

misc

100

misc

โš—๏ธ

:alembic:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ”

:mag:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿฅ…

:goal_net:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿง

:monocle_face:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿงช

:test_tube:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ‘”

:necktie:

๐ŸŽฒ Miscellaneous

misc

100

misc

๐Ÿ‘Œ

:ok_hand:

๐Ÿ Release

release

110

release

๐Ÿš€

:rocket:

๐Ÿ Release

release

110

release

๐Ÿ”–

:bookmark:

The following commit messages are equivalent:

๐Ÿ› Random number generator always returns 4.
:bug: Random number generator always returns 4.

Keywords are automatically replaced by their corresponding emoji in the generated changelog.

Use the key value to match a category and change its settings.

Example

The following configuration

release:
  github:
    changelog:
      formatted: ALWAYS
      preset: 'gitmoji'
      format: '- {{commitShortHash}} {{commitTitle}}'

For a project with the following commits

* 3dabd57 :bookmark: Release v2.2.0
* a9b1bfe :bug: Fix init command (#204)
* cdf76f9 :pushpin: Upgrade dependencies (#191)
* f7ca721 :memo: Fix the link and update year (#197)
* ceab8dc :sparkles: Add Cargo preset (#199)
* d2ee43d :memo: Change documentation link in README (#196)
* e06e08d :busts_in_silhouette: Add endormi as a contributor (#195)
* 5e0a971 :docs: Add the documentation site (#194)
* 20cf369 :bug: Fix a bug occuring when version is missing in configuration but passed as argument (#190)
* b12dfec :ok_hand: Take care of review
* 9a15406 :goal_net: Handle functional errors
* 4e22239 :pencil: Improve documentation about presets (#189)
* 1febf42 :wrench: Update lock file
* 1635963 :memo: Improve Workflow section (#152)
* a127469 :arrow_up: Upgrade dependencies

Generates a changelog similar to

jreleaser changelog preset gitmoji