-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add at least one approval before merging a PR #4772
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
Conversation
d8eed8a to
4b1e3ba
Compare
nickva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from me. Let's try it and see how it goes. We can always tweak them as we go along. Most of these are already good practices we follow anyway, so it would be an extra check to prevent accidental merges and such.
For visibility let's mention it in dev slack channel to see if there are other preferences.
|
I dislike the inability to do a merge commit. For larger pull requests I deliberately split them into multiple commits that are easy to review (at the time but, importantly, retrospectively). CouchDB may not be usable at each step, only before or after the set. Flattening these commits to form a fake linear history will lose that context, will yield broken builds at some of those commits, and the history does not actually reflect the history that the project took. |
|
Okay, than I would like to know, how others review commits. For my side, I use the GH UI and check all changes (from all commits) as a whole and if it's a larger change, then I used the checkmark that I viewed the file. If no changes are made again (in the meantime) I would give my approval/request/comment ... I think it's totally okay to give seperate commits during development, but if it should land in main, then it should be squashed to exactly one "atomic" commit. One feature/fix one commit. If something is wrong with that, it can be easily reverted or fixed. This way would solve two of your hints. CouchDB is always usable after each commit and there are no "sub-feature/bug-commits" on the history. If a "sub-feature/bug" is important for history, then it should become an own commit. |
4b1e3ba to
9975131
Compare
76f8a9c to
d0db876
Compare
|
Hey, I updated the PR and removed the disabling of merge requests and the force of a linear history. Nick @nickva, I had your approval before, but would like to get a new one (from others too). Maybe @rnewson has additional comments? |
Require at least one approval before merging a PR.
d0db876 to
ba8c534
Compare
|
Thanks @big-r81 for working on this! |
Require at least one approval before merging a PR.
Add additional branch checks before merging a PR.1. Require a linear history for better redability.2. Disable "merge commits".3. Require at least one approval.Edited:
As a first smaller change, add at least one approval before merging a PR.