如何检查我们是否是存储库的所有者?

时间:2021-02-15 23:00:47

标签: github github-api

我正在使用 Github API 从我的存储库中获取数据,如下所示:

curl \
  -H "Accept: application/vnd.github.v3+json" \
  https://api.github.com/repos/octocat/hello-world

文档:https://docs.github.com/en/rest/reference/repos#get-a-repository

为了运行这个查询,在标题中,我也使用了我的访问令牌,

我有一个问题,有没有办法从 github api 响应中检查我是存储库的所有者?我想创建一个简单的语句来检查来自 github api 的响应存储库是否是我的(不同的公共存储库),

感谢您的帮助!

0 个答案:

没有答案
相关问题