获取组织中的Github存储库所有者

时间:2020-08-15 21:21:35

标签: github graphql

我正在尝试获取组织中存储库中的Admin列表,

找不到解决办法,总是向我返回组织名称,而不是存储库的管理员名称

query Github {
  organization(login: "platform-test") {
    repositories(first: 100,after:"Y3Vyc29ysd654OAAKz-A==") {
      nodes {
        nameWithOwner
     owner{
      login
      id
      __typename
      url
     }
      
      }
      pageInfo {
        endCursor
        hasNextPage
      }
      totalCount
    }
  }
}

将返回结果快照:

  "data": {
    "organization": {
      "repositories": {
        "nodes": [
          {
            "nameWithOwner": "Platform-test/afapi-aps-bigfix",
            "owner": {
              "login": "Platform-test",
              "id": "MDEyOk9yZ2FuaXphdGlvbjc2NjA=",
              "__typename": "Organization",
              "url": "https://github.dxc.com/Platform-test"
            }
          },
          {
            "nameWithOwner": "Platform-test/CVA-operation-k8s-pre",
            "owner": {
              "login": "Platform-test",
              "id": "MDEyOk9yZ2FuaXphdGlvbjc2NjA=",
              "__typename": "Organization",
              "url": "https://github.dxc.com/Platform-test"
            }
          },....

找不到一种方法来获取组织内部存储库的管理员列表

0 个答案:

没有答案
相关问题