How to get the upload request filter using the Github API owner

I just want to request a PR from a specific user.

Do I need to use a parameter head

? But how?

https://api.github.com/repos/org-a/repo-b/pulls?state=open&per_page=1&head=owner:user-c

does not work.

API Refer: https://developer.github.com/v3/pulls/#list-pull-requests

+3


source to share


1 answer


Use the search API and specify filters repo:REPO

, author:USER

and is:pr

:

https://developer.github.com/v3/search/#search-issues



For example, here are pull requests from rails/rails

from aderyabin

:

https://api.github.com/search/issues?q=is:pr+repo:rails/rails+author:aderyabin

+6


source







All Articles