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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With