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

Added support for overriding merge message for the gitflow:release-finish on develop branch #175

Closed
pcoulso1 opened this issue May 17, 2019 · 1 comment

Comments

@pcoulso1
Copy link

Most of the git commit messages can now be overridden, however one during gitflow:release-finish cannot.

Our git commit hooks require a ticket to be listed against all commits. This one merge message prevents us from using this plugin.

Proposed solution

Use the releaseFinishMergeMessage for the one commit message which cannot be overridern

e.g. within src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowReleaseFinishMojo.java at line 281 modify the code from

// merge branch master into develop gitMerge(releaseBranch, releaseRebase, releaseMergeNoFF, false, null, null);

to

// merge branch master into develop gitMerge(releaseBranch, releaseRebase, releaseMergeNoFF, false, commitMessages.getReleaseFinishMergeMessage(), messageProperties);

@aleksandr-m
Copy link
Owner

@pcoulso1 1.13.0 is out.

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