Hi.
I am trying to figure out how to list all repositories in an organization which have “isTemplate: true”.
Here are my query, which does return results, but not all of them are templates.
query {
search(query: "org:MyOrg is:template", type: REPOSITORY, first: 10) {
repositoryCount
edges {
node {
... on Repository {
name,
isTemplate
}
}
}
}
}
Results:
{
"data": {
"search": {
"repositoryCount": 2,
"edges": [
{
"node": {
"name": "TemplateTest",
"isTemplate": true
}
},
{
"node": {
"name": "NotATemplate",
"isTemplate": false
}
}
}
]
}
}
}
Is this currently not supported?