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

fix(pr): Fix clean phase before committing changes #597

Merged
merged 13 commits into from
Jan 8, 2025
Merged
Prev Previous commit
Next Next commit
fix(jte): Reverts the custom title "optimization"
  • Loading branch information
gounthar committed Jan 8, 2025
commit a6acc17af1f018eceebd459c18a6cb81490f3a59
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ public static String renderCommitMessage(Plugin plugin, Recipe recipe) {
*/
public static String renderPullRequestTitle(Plugin plugin, Recipe recipe) {
if (hasTitleTemplate(recipe)) {
return renderTemplate(
"pr-title-%s.jte".formatted(getTemplateNameForRecipe("pr-title", recipe)),
Map.of("plugin", plugin, "recipe", recipe));
String shortName = recipe.getName().replaceAll(Settings.RECIPE_FQDN_PREFIX + ".", "");
return renderTemplate("pr-title-%s.jte".formatted(getTemplateNameForRecipe("pr-title", recipe)), Map.of("plugin", plugin, "recipe", recipe));
}
return renderTemplate("pr-title.jte", Map.of("plugin", plugin, "recipe", recipe));
}
Expand Down