I want to fetch all the repos, that I'm owner/contributor with specific topic.
I tried below this request. This returned, all my repos that I'm owner/contributor with all the topics.
{
viewer {
repositories(first: 100) {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
nodes {
name
repositoryTopics(first: 10) {
nodes {
topic {
name
}
}
totalCount
}
}
}
}
}
I also tried the below request. But it returned all the repos in my org (not only mine) with that specific topic.
{
search(first: 100, type: REPOSITORY, query: "topic:mytopic org:myorg") {
pageInfo {
hasNextPage
endCursor
}
repos: edges {
repo: node {
... on Repository {
name
url
id
}
}
}
}
}
I need only repos that I'm owner/contributor with that specific topic