Skip to content

Feature: tag message from config (#453)#1006

Open
ebAtUelzener wants to merge 2 commits intoallegro:mainfrom
ebAtUelzener:feature/tag-message-from-config
Open

Feature: tag message from config (#453)#1006
ebAtUelzener wants to merge 2 commits intoallegro:mainfrom
ebAtUelzener:feature/tag-message-from-config

Conversation

@ebAtUelzener
Copy link

This PR implements a way to set the tag message via a callback.

It does not change default behaviour of the plugin.

The explicit suggestion from the original issue (relaying the commit message) is not intended to be implemented by this, however it is possible to provide extra information from CI using e.g. Gradle properties/ environment variables and reading these to set the message.

Minimal example reading an environment variable:

scmVersion {
  tag {
    messageCreator { position, version, previousVersion ->
      val envVar = System.getenv("SOME_VAR")
      "This is a message on version $version (previous: $previousVersion) {commit: ${position.shortRevision}} [$envVar]"
    }
  }
}

This would allow users to use arbitrary logic to set a tag message, without changing too much of the plugin's internals.

@ebAtUelzener ebAtUelzener force-pushed the feature/tag-message-from-config branch from 4ddd9a6 to cdac69a Compare February 9, 2026 17:32
@ebAtUelzener ebAtUelzener force-pushed the feature/tag-message-from-config branch from cdac69a to f7fa54a Compare February 9, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant