目前在github中,我可以使用GraphQL应用程序接口获取去年的贡献。
{
user(login: "username") {
contributionsCollection {
contributionCalendar {
weeks {
contributionDays {
contributionCount
date
color
}
}
}
}
}
}
我在gitlab GraphQL API中找不到对应的东西。有没有可能在gitlab中提供这些信息?即使它不使用GraphQL也没关系,只是希望能够收集到它。
发布于 2020-09-03 06:13:03
您可以从events API获取用户的贡献:
https://docs.gitlab.com/ee/api/events.html#get-user-contribution-events
https://gitlab.example.com/api/v4/users/:id/events
您还可以在用户的页面上获得用户最近的贡献的JSON表示
https://gitlab.example.com/users/:username/contributions.json
https://stackoverflow.com/questions/63713150
复制相似问题