【发布时间】:2018-01-20 08:38:16
【问题描述】:
我知道,当我通过 API 创建 GitHub 问题时,我可以提交 initial 正文/评论,如下所示:
var issue = {
"title": title,
"body": bodytext,
"assignees":[]
};
$.ajax({
type: "POST",
url: uploadURL,
contentType: "application/json",
dataType: "json",
data: JSON.stringify(issue)
})
.done(function( data ) {
console.log(data);
});
有没有办法在原创过程中也对该问题发表单独的评论?谢谢!
【问题讨论】:
标签: javascript jquery git github github-api