Is there any way to fork from a Pull Request

I’m interested in a project here that seems to be abandoned.  The last commit was from 2015, but there are pull requests from 2017.  https://github.com/bcbnz/pylabels

One of the Pull Requests on the project is very useful to me, but I’m not sure how to work it into my own fork, aside from just copying and pasting the code, which feels wrong, and also a bit unfair to the person who wrote it.  They thankfully made it easy to copy, but if I don’t have to go down that route, I’d rather not.

EDIT: NVM, I found I can go to the user who submitted the request and look at their fork and for their version.

Hi @fi-kyles,

Glad to see you found a solution! For future reference, you can also fetch a PR via git. If you clone the repository, you can then

git fetch refs/pull/$number/head:refs/heads/branch-for-pr-$number
1 Like

@fi-kyles wrote:

I’m interested in a project here that seems to be abandoned.  The last commit was from 2015, but there are pull requests from 2017.  https://github.com/bcbnz/pylabelshayarionly

 

One of the Pull Requests on the project is very useful to me, but I’m not sure how to work it into my own fork, aside from just copying and pasting the code, which feels wrong, and also a bit unfair to the person who wrote it.  They thankfully made it easy to copy, but if I don’t have to go down that route, I’d rather not.

 

EDIT: NVM, I found I can go to the user who submitted the request and look at their fork and for their version.

Thanks