-
Notifications
You must be signed in to change notification settings - Fork 129
Disable green merge button for a specific repository #5
Comments
This comment has been minimized.
This comment has been minimized.
+1 -- We've adopted the same rule on our team |
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
👍 from jQuery also. https://twitter.com/gnarf/status/378211055932936192 |
Related: #88 "Allow pull requests to be rebased from the UI" |
This comment has been minimized.
This comment has been minimized.
8 similar comments
👍 |
+1 |
👍 |
👍 |
👍 |
👍 |
+1 |
+1 |
👍 What if we say pretty please? |
This comment has been minimized.
This comment has been minimized.
Definitely overkill, but I wonder if it would be possible to use a service to create a webhook (new webhook implementation WHOOP!) so that whenever a PR is merged, it reverts by updating the head ref. I'm not 100% on git internals and whether this is how head references work. Also not sure how github would treat the PR anyhow |
This comment has been minimized.
This comment has been minimized.
+1 would also use this |
This comment has been minimized.
This comment has been minimized.
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
That button is pure evil. |
(づ ̄ ³ ̄)づ:+1: |
+1 The other alternative is to have a setting per-repository where we could specify that the green-button would be only available for the fast-forward merges and pressing it would not create a merge commit. Still in projects with high traffic PRs fast-forward merges are rare... |
This comment has been minimized.
This comment has been minimized.
I just trained Adblock that the 'Confirm & Merge' button should not be displayed - This nicely solves the problem for me and stops me accidentally clicking it... and I can always disable adblock if I want the merge button to return - Hope this idea comes in useful to others. |
Almost the 3rd anniversary of this issue. +1!!!!! |
This comment has been minimized.
This comment has been minimized.
2 similar comments
+1 |
+1 |
+1 we do want it to have a hook kind of mechanism which can be switched on/off on demand to say enable or disable as per need. |
This comment has been minimized.
This comment has been minimized.
+! |
This comment has been minimized.
This comment has been minimized.
3 similar comments
+1 |
👍 |
+1 |
This comment has been minimized.
This comment has been minimized.
1 similar comment
+1 |
+1 we strictly use a rebase work flow with out any merge nodes, so this would be great |
For those that are +1'ing the issue and may not have seen this, the "Options" page in repository settings now has the following options: I believe disallowing merge commits in favor of rebasing and fast-forward merges was the original reason for opening this issue, and it can be closed now that that's possible. |
@jfirebaugh While this is great, it won't let you "uncheck" all three boxes, which would be great for preventing "yolo-style" click merging, and instead getting users to actually use the cli and/or test the patch themselves first :) |
Amazing this cannot be disabled completely! |
This comment has been minimized.
This comment has been minimized.
Still an issue. I very much want to prevent anyone from using GitHub to merge, ever. |
Is this ever going to be addressed? Or should I start writing a chrome extension to remove it? |
This comment has been minimized.
This comment has been minimized.
I've found one way to remove the green merge button. I've setup Bors-NG as a commit queue. I then set the bors merge job as required/blocking in the Github config. The job doesn't run until a user types It works quite well to prevent people from hitting the big green button |
This wouldn't be a problem if GitHub didn't hardcode |
For our team, we would need to disable the merge button. Here is our process:
|
On joyent/node and isaacs/npm, we have a strict rule about not merging pull requests using the green "merge" button, because it creates excessive merge commits. (See additional discussion in #2.)
But the button is large, and inviting. It'd be nice to conditionally disable it per repository.
The text was updated successfully, but these errors were encountered: