I got a pull request on a Github from a fork by someone with an interesting idea. The commit was done on the master of the fork. I would like to "accept" that pull request, but only if I am able to check it before, and perhaps enhance it.
So what I would like to do is:
- Accept the pull request, but create a new branch in my repository, that then includes the changes.
- Work on that branch locally: do some experiments, add unit tests, documentation, ...
- When everything is done, decide then to "publish" it by merging the changes to master.
I have searched a lot in the documentation, but it seems not to be possible. The only way it will work is:
- The other one has created a branch, worked there, and then did the pull request on that branch.
- When I accept it, the branch will be created in my repository.
- Then I am able to follow my approach.
If I just accept and merge the pull request, I get
- Changes directly on the master.
- Everyone that then clones my repository gets automatically the changes.
So how can I reach the following goals: give credit to the originator, be safe in accepting it, have the option to work further on it?