如何使用 Github GraphQL Api 创建问题和标签?
How to create issues and labels with the Github GraphQL Api?
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://platform.github.community/c/graphql-api 提交架构请求,GitHub 将优先创建该变更。
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://platform.github.community/c/graphql-api 提交架构请求,GitHub 将优先创建该变更。