Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I merge a pull request into a feature branch of my github project?

Someone has submitted a pull request to my GitHub project from a fork. Rather than merging directly into master, I would prefer to merge the changes into a feature branch so that I can make some minor edits before merging the final product into master. If at all possible, I'd like GitHub to indicate to the submitter that the request was accepted (I want to encourage and recognize contributions!). Is this possible? How do I go about it?

like image 950
ChaseMedallion Avatar asked Sep 28 '22 21:09

ChaseMedallion


1 Answers

Firstly you should create a copy of the branch that the pull-request is targeting. After that you can change the branch by editing the Pull-Request that was opened (even if it was not opened by you) by clicking the edit button (See the images below). Once you have done that you should double-check if the target branch was changed.

If it changed successfully then you can merge the PR into the new branch.

Edit button location

Branch selection when clicking the edit button

Changed target branch

like image 185
GHXX Avatar answered Oct 02 '22 16:10

GHXX