gpt4 book ai didi

项目贡献者的 github graphql 查询

转载 作者:行者123 更新时间:2023-12-03 14:49:56 27 4
gpt4 key购买 nike

我想使用 GitHub Graphql api 查询项目贡献者,谁能给我任何提示如何制作它?刚刚尝试了一段时间,我想我缺少一些小元素。

我想得到某样东西 https://api.github.com/repos/facebook/react/contributors?page=15但仅限于捐款金额

你好!

最佳答案

更新时间:2020 年 5 月。

Github GraphQL API 目前不支持获取 contributors一个 repo 。

您可以获得 collaborators尽管....

query {
repository(owner: "peek", name: "peek") {
id
name

collaborators(first: 10, affiliation: ALL) {
edges {
permission
node {
id
login
name
}
}
}
}

rateLimit {
cost
}
}

您需要拥有对存储库的推送权限才能查看协作者。

关于项目贡献者的 github graphql 查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46309272/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com