GitHub API v4 (GraphQL) 中的突变很少?

Few mutations in GitHub API v4 (GraphQL)?

使用 GitHub GraphQL API (v4),是否可以完成这些任务?

我们正在讨论从 REST 迁移到 GraphQL,但没有这个功能似乎为时过早。作为 GraphQL 的新手,我想确保我没有在某处遗漏此功能。

更新:

来自 GitHub 员工(2018 年 4 月 21 日):

Unfortunately, mutation coverage isn’t the best in our GraphQL API right now. The good news is that we have a focused team working on building out parity between REST and GraphQL. It’s hard to give ETAs on these mutations for you, but they’re on the list of things to do!

createRepository mutation was added to GitHub's GraphQL API v4 on 26 June 2019.

例如,以下变更会创建一个新的 public 存储库 "foo":

mutation { 
  createRepository(input:{name:"foo", visibility:PUBLIC}) { 
    clientMutationId,
    repository {
      id,
      nameWithOwner
    }
  }
}

updateRepository mutation was added on 17 July 2019.

(create|merge|close)PullRequest mutations were added on 24 October 2018.

正在创建标签(createRef, strictly speaking) was added on 28 June 2019

因此,截至 2019 年 7 月 29 日,我相信只有 blob、版本和 deleteRepository 的变更仍然未在您的列表中列出。