aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
497 stars 182 forks source link

fetch branches from remote on "-finish" goals #196

Closed ghost closed 4 years ago

ghost commented 5 years ago

it would be much easier to run "-finish" goals for user who didn't start it (doesn't have e.g. release branch checked out locally) when fetch of remote branches is performed before search for required branch(release branch e.g.) Perfect example: only some users are allowed to push to master. Someone starts release and checks if everything's OK but someone else have to finish it.

MarkVMk2 commented 4 years ago

Another example: jenkins builds - "start" and "finish" goals are being executed with different jobs

aleksandr-m commented 4 years ago

@mireczatko @MarkVMk2 I've implemented this for release-finish goal for now. Not sure whether there is need to do this in the others goals.

ghost commented 4 years ago

@aleksandr-m great, thank you. I think hotfix-finish is almost same scenario

MarkVMk2 commented 4 years ago

It useful for all -finish goals - i had cases when plugin was unable to find release, hotfix or feature branch and several times it failed due to missing develop because it was fetched to HEAD

aleksandr-m commented 4 years ago

@mireczatko @MarkVMk2 1.14.0 is out with fetching remote release branch in release-finish goal.