【发布时间】:2020-10-27 01:39:57
【问题描述】:
我正在使用 GitHub API v3。我想将存储库中的提交过滤为由特定作者提交的提交。我使用以下 API 来执行此操作。虽然它并不总是有效。
https://api.github.com/repos/:owner/:repo/commits?author=:author&page=1&per_page=100
例如,对于以下一个。
https://api.github.com/repos/mtreinish/linux/commits?author=mtreinish&page=1&per_page=100
在这种情况下,它会返回以下结果。
{
"message": "Server Error",
"documentation_url": "https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository"
}
你能帮我解决这个问题吗?
【问题讨论】:
-
响应中的 HTTP 状态代码是什么?
-
密码好像是500。
-
HTTP 提供状态码作为请求的一部分,以及标头。如果您使用的是
curl,则可以使用-D -查看此信息。
标签: github commit github-api git-commit