-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Protected master branch: create PR #363
Comments
@d-baer There is |
Thanks @aleksandr-m for your answer. After thinking about my use case, I' d like to rephrase my question. We have a protected So the question is how to configure With this configuration <configuration>
<pushRemote>true</pushRemote>
<commitDevelopmentVersionAtStart>true</commitDevelopmentVersionAtStart>
</configuration> it is possible to create the release branch with |
The way I set up the CI for my client is that the CI is taking care of running the gitflow plugin, and the CI has the authority to push to the master branch. That's the best way to go about it, in my opinion. Another way would be not using gitflow for the end of your flow ? Just use the versions plugin to remove the SNAPSHOT suffix of the release branch, create the PR, and then tag. You can use the plugin parameter |
@d-baer Can you outline exact steps you want plugin to do in that case? |
We have the same use case. Master branches never allow merges without a PR (requirement from SecOps). Essentially we need a PR approved before any merge. I think the steps would be something like this:
developers now have to approve the PR release-merge:
developers now have to approve this PR release-backmerge
developers now have to approve this PR release-finish:
@d-baer does this sound right for your use case as well? For our use case, this requires three separate PR's, since we are required to protect both |
My
master
branch at github is protected, changes can only be made via Pull-Requests. With gitflow-maven-plugingitflow:release
I'd like to create a PR fromdevelop
tomaster
instead of a push tomaster
.As far as I understand I could use
<gitPushOptions>
. Current configuration is:<gitPushOptions>merge_request.create merge_request.target=master</gitPushOptions>
But I still get:
Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.18.0:release on project ***: release: remote: error: GH006: Protected branch update failed for refs/heads/master.
Seems like I am missing something.
The text was updated successfully, but these errors were encountered: