-
Notifications
You must be signed in to change notification settings - Fork 129
Explicit "mark as merged" option in pull request UI #2
Comments
👍 |
Additionally, allowing you to rebase (or even rebase-and-squash) in the UI would be great, rather than needing to go into a local copy to do so. It would be perfectly fine if this only worked in non-conflicting cases. |
👍 |
5 similar comments
👍 |
👍 |
👍 |
+1 |
👍 |
👍 |
How do we get this to the attention of GitHubers? |
|
I remember at least one github talk talking about "TDD: Twitter Driven Development" |
Edit: D'oh removed silly text, thanks to @rlidwka for pointing out that this isn't GitHub's official tracker. +1 |
This isn't an official github issue tracker, so there are no gh developers here to annoy. Sorry. :) |
👍 |
👍 |
1 similar comment
👍 |
+1 |
5 similar comments
+1 |
👍 |
👍 |
👍 |
👍 |
Can't you have an
|
👍 |
+1 and for maintainers who want to automate the rebase+merge, I've created git cherryfetch https://ttboj.wordpress.com/2015/03/16/fancy-git-aliases-and-git-cherryfetch/ Hope this helps, even if @github isn't showing it. |
+1 when doing manual via command line I cannot close as merged, without it merging again in the UI |
If I understand it correctly, I don't think this is necessary any longer. GitHub now allows you to rebase or squash directly from the UI, so you can "merge" the PRs without having having the useless merge commit. 👍 |
@bfred-it unfortunately when you click via the webui it also modifies the commits! try it yourself, you'll see github signs them itself, in fact, quite different from if you use the cli. It's just junk. |
How can it not modify the commit? The only way to get a commit onto a branch without modifying it is to have the same base. If you open two PRs from |
@bfred-it A simple fast forward should occur in many situations but doesn't. Try it yourself. |
As I said, that only works for the first merge, but not for consecutive ones: ❯ git checkout -b test
❯ git commit --allow-empty -m "test"
[test 3573e328] test
❯ git checkout master
❯ git checkout -b test2
❯ git commit --allow-empty -m "test2"
[test2 6ce85395] test2
❯ git checkout master
❯ git merge test
Updating b3859c62..3573e328
Fast-forward
❯ git merge test2
Already up-to-date!
Merge made by the 'recursive' strategy. The first one is fast forward, the second one isn't: ❯ git log -3 -U
commit 28163afe030afe2b5b8d156af52e5ab71e881884 (HEAD -> master)
Merge: 3573e328 6ce85395
Author: Federico Brigante <[email protected]>
Date: Fri Mar 9 15:43:00 2018 +0700
Merge branch 'test2'
commit 6ce85395d2b1e77cc765419ac232254c2058ce84 (test2)
Author: Federico Brigante <[email protected]>
Date: Fri Mar 9 15:42:37 2018 +0700
test2
commit 3573e32877e3be7255054d17259add9df2bcfda4 (test)
Author: Federico Brigante <[email protected]>
Date: Fri Mar 9 15:42:21 2018 +0700
test
|
Pull requests are automatically marked as merged when the commits are not modified before pulling them into the main branch.
However, for repos that receive a lot of pull requests, the option is to either (a) have an excessive number of merge commits, or (b) force pull requestors to continually rebase on the lastest upstream, or (c) rebase/cherry-pick/am the patches on my repo, and forego the "merged" data point.
In many cases, (a) is unacceptable. Merge commits are used for specific cases, and "fixed a typo in a doc" is not worthy of the added noise.
If you are merging, let's say, 10 pull requests in a single day, then (b) is also unacceptable. I can tell all 10 people to pull, rebase, and force-push, however: 1) this is very tedious, as I have to wait for users to do this, and often explain how, etc. and 2) it creates a race condition if all 10 people do this, because they will have to do it again after I've merged one of their commits.
So, we fall back on (c) and, due to the impossibility of automatically determining whether a pull request was merged, it looks like Node doesn't accept patches.
It'd be great if I could explicitly indicate in the UI that a pull request was merged, so that the data could be more accurate.
The text was updated successfully, but these errors were encountered: