Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow configurable git commit message prefixes #602

Closed
ernstk opened this issue May 23, 2024 · 2 comments
Closed

Allow configurable git commit message prefixes #602

ernstk opened this issue May 23, 2024 · 2 comments

Comments

@ernstk
Copy link

ernstk commented May 23, 2024

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
Copy link
Contributor

@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}"

@alejandrohdezma
Copy link
Member

Closing this since there hasn't been any interaction from the creator and a solution has already been proposed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants