-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Avoiding version update direct commit on develop / master #226
Comments
One downside of this is when the feature branch is kept after finish then version in it will be w/o feature name. Ideas? |
Yea you are right. I did't think about that use case. I can think of couple of solutions
|
@sndmails2arun Same here 👍 . Implemented the 3. Thanks for reporting and possible solutions! |
👍Thank you very much. You are awesome ! 👍 |
@sndmails2arun 1.15.0 is out! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Few of the teams I work with has put in restrictions on their repo to reject any direct commits on the develop and master branches , and allow only merge commits to be pushed to remote.
So when I do feature-finish for eg. , if the feature version in pom is 1.0-feature1-SNAPHOT , it merges that in to develop, then update the version in develop to 1.0-SNAPSHOT with another commit. For us this commit would be rejected by our remote repo since it is not a merge commit.
I am not sure if there was a specific reason for doing it this way.
Possible solution:
If the commit to update the version is is done on the feature branch , and then it merges to develop, the end result will be same but just with a merge commit. So the logic would be , feature-finish > check current develop version and copy it > change the version on feature branch and commit > checkout develop > merge feature branch and commit
The text was updated successfully, but these errors were encountered: