Merging pull requests with forge #524
-
I can't seem to find the binding in the magit transient ui for merging a pull request with forge, so i have to use And btw the box down that says "I have done a search or similar discussions" I have done 3 searches for similar discussions so. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I recommend you do not use To perform a merge in Emacs, use Magit's merge commands. You can, for example, place the cursor on a pr in the pull-request list in the status buffer and type What I usually do is to check out the pr using At * I might make changes to the commits in the pr. If I do, then I push to the contributors feature branch before merging into the target branch (or rather before pushing the result). Doing that ensures that Github later realizes that the merge has happened. |
Beta Was this translation helpful? Give feedback.
-
So I should checkout that branch that is source in the pr (place the cursor on pr and click |
Beta Was this translation helpful? Give feedback.
-
The fetching happens after the api was used to perform the merge to bring the local state up-to-date. That shouldn't affect the outcome of the merge (visit the webpage to confirm) and there are a variety of reasons why it might fail. The fetching is done using |
Beta Was this translation helpful? Give feedback.
I recommend you do not use
forge-merge
, as it performs the merge using the Github API, and doing that results in inferior merges, depending on which "merge method" you choose. Github does not offer basic "fast-forward" merge, which is extremely annoying. This command exists for users whose employer forces them to use the API to perform merges.To perform a merge in Emacs, use Magit's merge commands. You can, for example, place the cursor on a pr in the pull-request list in the status buffer and type
m m
.What I usually do is to check out the pr using
b n
b f
on the pr in the status buffer, then (possibly after *) I merge the checked out branch into to proper branch (likelymain
/master
) us…