Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Allow configurable git commit message prefixes #602

Open
ernstk opened this issue May 23, 2024 · 1 comment
Open

Allow configurable git commit message prefixes #602

ernstk opened this issue May 23, 2024 · 1 comment

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

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

No branches or pull requests

2 participants