-
-
Notifications
You must be signed in to change notification settings - Fork 849
Enabling branch protection for the master branch #793
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
Comments
I think that's a fair idea. But the 1 commit only is a bit harsh. |
Too much? |
That's right. Agreed. Agreed with Olle, I found 1 commit not convenient. btw, what is "liner history"? |
Linear history means 'no merge commits'. |
Yep correct. See an example of confusion in #737. We can force people to be updated considering the latest master, but if we don't force "Squash and merge" as the only merging strategy, we might end up with these commits in the history: https://github.com/github-changelog-generator/github-changelog-generator/pull/737/commits If you squash and merge, these commits will not matter anymore, because the corresponding changes are already in master. This has a few benefits:
What are the downsides you see? |
Cons with "squash any PR": Commits can be seen as invididual storytelling 'sentences', where a PR tells a 'story' in a series of sequential 'sentences'. Perhaps authors want that possibility? (Please note: this is not a blocking comment, I'm just describing a way of working.) Unrelated: Today I went to the Settings to remove Checks for now-removed CircleCI jobs. |
Oh cool! So, I guess it's up to us to decide. I don't have strong preferences either way. I feel that enforcing a PR to be up to date might let us catch some integration issues before landing the changes in the master branch. I found this way of working is fine for small/medium sized open-source projects. |
1. "Squash and merge"I agree with @olleolleolle it would be nice, to leave the "storytelling" feature.
In the case of commits like:
So my propose is: let's try this and make it a default for us. 2. Merge commits + master workflowIt's still painful even now. @ferrarimarco, so, what is the standard workflow? I will show my workflow. Please correct/update mine, and we will add it to Contributions section:
Any ideas on how to make it better? |
The workflow looks ok, but how can you enforce no. 4? |
Good question. Don't know how to automate it yet. At least we can set as a rule in contributors guidelines. |
You can enforce it by doing as I suggested :)
|
Alright branch protection is in place. Can this Issue be closed now, as implemented? |
Hi! Happy to see activity in this repo!
So, I'd propose we enable some branch protection rules for the master branch:
On top of this, we might want to disable merge commits and rebase merging, to ensure the PR author:
What do you think?
@olleolleolle @skywinder (and others! I lost track of the names of new maintainers, sorry! feel free to chime in :)
The text was updated successfully, but these errors were encountered: