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
rebase onboarding branch does not respect commitMessagePrefix #10854
Labels
good first issue
Suitable for new contributors
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:bug
Bug fix of existing functionality
Comments
tstollin
added
priority-5-triage
status:requirements
Full requirements are not yet known, so implementation should not be started
type:bug
Bug fix of existing functionality
labels
Jul 15, 2021
What does your exact bot config look like? (sanitized but not simplified) |
Sorry, i forgot to include it. It looks like this:
|
rarkins
added
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
status:ready
and removed
priority-5-triage
status:requirements
Full requirements are not yet known, so implementation should not be started
labels
Jul 18, 2021
It seems like we should have a common function for determining the commit message for create and rebase/update. |
@rarkins I will take this issue |
6 tasks
Thank you @pret-a-porter |
🎉 This issue has been resolved in version 25.72.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
good first issue
Suitable for new contributors
priority-3-medium
Default priority, "should be done" but isn't prioritised ahead of others
type:bug
Bug fix of existing functionality
How are you running Renovate?
If using the hosted app, please skip to the next section.
Otherwise, if self-hosted, please complete the following:
Please select which platform you are using:
Renovate version: 25.49.5 (official docker image)
Describe the bug
In our enterprise environment, we are required to prefix all commit messages with Jira Issue IDs. To pass this regex check, we use the configuration option
commitMessagePrefix
to add a placeholder issue to all commits.This works fine for creating onboarding PRs and update PRs.
But for rebasing onboarding PRs the commitMessagePrefix is ignored and our renovate CronJob fails due to the push being blocked.
To test the behaviour we deactivated the check (which is no longterm solution due to it being a compliance requirement). This created these changes on the onboarding PR:
A solution should be for
getCommitMessage(config: RenovateConfig)
inrebase.ts
renovate/lib/workers/repository/onboarding/branch/rebase.ts
Lines 18 to 33 in 3a4e742
to honour the config
commitMessagePrefix
just likecreate.ts
does:renovate/lib/workers/repository/onboarding/branch/create.ts
Lines 22 to 42 in 73cd3d5
...
Relevant debug logs
Click me to see logs
Have you created a minimal reproduction repository?
Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.
Additional context
...
The text was updated successfully, but these errors were encountered: