Curl 无法使用Github API v3设置其他开放源代码项目的请求状态

Curl 无法使用Github API v3设置其他开放源代码项目的请求状态,curl,github-api,Curl,Github Api,我在github上有一个公共存储库,其中有一个随机拉取请求。使用Github API v3和我的个人访问令牌,我可以使用以下方式设置状态: curl "https://api.github.com/repos/user/DummyProject/statuses/xxx42a7aaa2aab10875aexxxxxxf675a73c52ac?access_token=xxxxxxxx4d765693ac40a4a51cxxxx7a3100ef50" -H "Content-Type: app

我在github上有一个公共存储库,其中有一个随机拉取请求。使用Github API v3和我的个人访问令牌,我可以使用以下方式设置状态:

curl "https://api.github.com/repos/user/DummyProject/statuses/xxx42a7aaa2aab10875aexxxxxxf675a73c52ac?access_token=xxxxxxxx4d765693ac40a4a51cxxxx7a3100ef50"   -H "Content-Type: application/json"   -X POST   -d "{\"state\": \"success\", \"context\":\"BuildBot\", \"description\": \"build success\", \"target_url\": \"http://www.example.com\"}"
但是,我需要为这个构建bot创建一个单独的github帐户,它将在我的项目上设置构建状态。当我用buildbot令牌替换我的令牌时,我得到以下响应:

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3"
}

我为buildbot生成的令牌已标记了所有权限,但为什么此buildbot无法设置状态?该项目是开源的。

我后来发现,为了在项目上设置状态,需要将非项目所有者添加为协作者