I tried using the Repository field myself and I think it only searches repositories that the viewer owns. But, the Repositories connection does give developers a ton of filter options, including viewing repositories that you collaborate on, are a member of the underlying organization, or own yourself.
Hope this helps!
Thanks Gavin. I'll dig around the filter options, that seems sensible.
No problem! If you have any other questions regarding this topic, just reply once more and we'll see what we can do!
Actually...this seems to be what I need. With this and the PTA I was able to get at any org repo as well as private repos under my account. It seems this is not the same as viewer{ repository .. Clearly early days for me with the API :-)
{
repository(name: "a_repo_name", owner:"org_or_individual") {
pullRequests(first: 1) {
pageInfo {
endCursor
hasNextPage
}
nodes {
id
url
body
}
}
}
}