我们在本地设置了Github Entperprise但我无法使用此API调用获取标签ID:GET /repos/:owner/:repo/labels
我最终获得了url
,name
和color
值:
{
"url": "https://ourdomain/api/v3/repos/username/repo/labels/bug",
"name": "bug",
"color": "ee0701"
}
然而official documentation表明我应该获得id
和default
值:
{
"id": 208045946,
"url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
"name": "bug",
"color": "f29513",
"default": true
}
我确定我在某个地方错过了一些设置,但似乎找不到任何东西。
提前致谢。