NodeJS APP: 我尝试使用Github REST API“https://github.com/api/v3/repos/ {拥有者}/{回购} /问题”使用以下参数和令牌从我的nodeJS应用程序创建github问题。我传递参数“creator”来显示谁创建/评论了这个问题。但它正在显示gitHub Access令牌的所有者作为问题的创建者。如何解决这个问题GitHub创建REST API问题与创建者参数
request.post({
url: githubApiEndpoint + "/repos/" + options.orgName + "/" + options.repoName + "/issues",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer " + options.accessToken
},
body: JSON.stringify({
title: "creating issue",
body: "description of issue",
creator: "username",
labels: ["question"]
})
}, callback);
,则您无法代表另一个人执行操作,创建者将成为使用该API的已认证用户。 – bitoiu