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 master only merges #2376

Merged
merged 3 commits into from
Dec 22, 2020
Merged

Conversation

inclement
Copy link
Member

Merge master into develop, to pull in the couple of PRs that have been made straight to master.

I know it's easy to miss, but PRs should go to develop. Not sure if we can protect master more, maybe non-core-devs can be blocked from making PRs to master.

@Fak3
Copy link
Contributor

Fak3 commented Dec 19, 2020

By the way, why the project needs separate develop branch? People are confused by that, as most of other projects use master branch to track the recent commits.

@inclement
Copy link
Member Author

It doesn't "need" it, it's just a convenient workflow. We roughly follow a git flow-type model.

@Fak3
Copy link
Contributor

Fak3 commented Dec 19, 2020

I mean... What is exactly you find convenient in having develop branch instead of master?

@inclement
Copy link
Member Author

We're making the choice that master represents the latest stable/released state (notionally it will always be production-ready), while develop represents the unstable development state. The names are fairly arbitrary, we're going with the original git-flow names as linked above.

@Fak3
Copy link
Contributor

Fak3 commented Dec 22, 2020

Hm, I thought that there are some practical reasons rather than historical

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@AndreMiras
Copy link
Member

It is a practical reason @Fak3. You can read the post inclement shared above https://nvie.com/posts/a-successful-git-branching-model/
It basically explain why this is a convenient model

@Fak3
Copy link
Contributor

Fak3 commented Dec 22, 2020

It is a practical reason @Fak3. You can read the post inclement shared above https://nvie.com/posts/a-successful-git-branching-model/
It basically explain why this is a convenient model

What is "it"? I skimmed through this article and only left with impression that the naming is completely arbitrary. The kivy, plyer and dozens of other projects call the most recent branch as "master" instead of "develop". And use branch called "stable" or "vX.X" for latest stable code

@inclement inclement merged commit f79343b into kivy:develop Dec 22, 2020
@inclement
Copy link
Member Author

Thanks @AndreMiras

@Fak3 The naming is indeed arbitrary, except insofar as we selected this choice because we like it.

@xloem
Copy link
Contributor

xloem commented Dec 22, 2020

Thanks for merging this.

@Fak3 it sounds like you have personal experience that would give good reasons to do it another way. The devs would need to know of these reasons to consider them. It sounds like the lower the barriers to understanding the project are, the more small fixes can come in from other projects. Changing things like this is usually something that would happen slowly with discussion, because many people have been working with it this way for a long time.

@xloem xloem mentioned this pull request Dec 22, 2020
@Fak3
Copy link
Contributor

Fak3 commented Dec 23, 2020

The reason I asked is because this issue revealed to me that I was not the only one surprised by branch naming. If this becomes a significant enough annoyance for new contributors, then it may be worth to consider aligning the branch naming with kivy and most other projects. Another related issue is that git, github and many other projects are changing the "master" to "main", which is covered here: https://github.com/github/renaming. So if the p4a project going to align the naming with the rest of the world, then i would suggest to use "main" for the most recent stuff and "stable" for latest stable release.

@AndreMiras
Copy link
Member

Thanks for explaining.
Using main and stable just feel as arbitrary to me. Both are documented workflows from different sources and we decided to chose Git-flow so far on p4a.
Regarding pull requesting on the correct branch this is done automatically on the default branch (which is develop) when you open a pull request unless someone changes it. It has happened a couple of times, but I don't feel it's something to worry about

@inclement inclement deleted the fix_master_only_merges branch December 23, 2020 12:55
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

Successfully merging this pull request may close these issues.

5 participants