scala-steward-org / scala-steward-action

A Github Action to launch Scala Steward in your repository
Apache License 2.0
136 stars 44 forks source link

Allow configurable git commit message prefixes #602

Open ernstk opened 5 months ago

ernstk commented 5 months ago

In order to follow conventional git commits[1], could we have an input to specify a commit-message prefix, ie "fix: ". It would also be great to prefix the PR description with the same prefix.

1 - https://www.conventionalcommits.org/en/v1.0.0/

EnviousSwan commented 2 months ago

@ernstk I think you can use the configuration for scala-steward itself

# If set, Scala Steward will use this message template for the commit messages and PR titles.
# Supported variables: ${artifactName}, ${currentVersion}, ${nextVersion} and ${default}
# Default: "${default}" which is equivalent to "Update ${artifactName} to ${nextVersion}"
commits.message = "Update ${artifactName} from ${currentVersion} to ${nextVersion}"

so in your case it would be something like this

commits.message = "fix: ${default}"