我想在github上查询我组织中的所有存储库,我尝试使用
query {
organization(login:"my-org-name") {
id
name
url
repositories(first:100) {
nodes {
id
name
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
但是它返回
{
"data": {
"organization": {
"id": "MDEyOk*********************U4ODUw",
"name": "my-org-name",
"url": "https://github.com/my-org-name",
"repositories": {
"nodes": []
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
找不到任何存储库。我在Github Developer上进行了测试,https://developer.github.com/v4/explorer/