【问题标题】:How to create issues and labels with the Github GraphQL Api?如何使用 Github GraphQL Api 创建问题和标签?
【发布时间】:2018-08-08 14:54:22
【问题描述】:

Api 的 V3 为此提供了一个 REST 接口:

POST /repos/:owner/:repo/issues

{
  "title": "Found a bug",
  "body": "I'm having a problem with this.",
  "assignees": [
    "octocat"
  ],
  "milestone": 1,
  "labels": [
    "bug"
  ]
} 

https://developer.github.com/v3/issues/

您甚至可以使用 GraphQL Api 添加表情符号反应:

https://developer.github.com/v4/mutation/addreaction/

或者评论:

https://developer.github.com/v4/mutation/addcomment/

我查看了可用的突变,我只能得出结论,您不能对新的 Api 提出问题。

https://developer.github.com/v4/mutation/

【问题讨论】:

标签: graphql github-api github-graphql


【解决方案1】:

不幸的是,创建问题(或标签)的突变还不存在。您可以在 https://platform.github.community/c/graphql-api 提交架构请求,GitHub 将优先创建该突变。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2022-10-14
  • 1970-01-01
  • 1970-01-01
  • 2017-06-20
  • 2017-06-20
  • 1970-01-01
  • 2020-10-17
  • 1970-01-01
相关资源
最近更新 更多