Mar*_*son 3 git version-control github github-api
是否有用于提交GitHub问题的API?
当我遇到意外问题时,我想为用户提供自动报告问题的选项.
这是GitHub API页面,其中详细说明了如何以编程方式创建问题:
https://developer.github.com/v3/issues/#create-an-issue
例子,来自文档:
/repos/:owner/:repo/issues
使用JSON 发送POST请求,如下所示:
{
"title": "Found a bug",
"body": "I'm having a problem with this.",
"assignee": "octocat",
"milestone": 1,
"labels": [
"Label1",
"Label2"
]
}
Run Code Online (Sandbox Code Playgroud)
您还可以通过发送PATCH请求以编程方式编辑问题 /repos/:owner/:repo/issues/:number
资料来源:https://developer.github.com/v3/issues/#edit-an-issue