我需要从我们的项目中收集来自GitHub的评论统计数据 [英] I need to gather review statistics from GitHub on our project
问题描述
我需要从我们的私人GitHub回购库中提取关于我们每个合作者在设定时间段内所做评论数量的信息。
我一直在评论GitHub文档,但对我而言,如果甚至有可能使用它们的REST API,那么它是不明显的。
我想使用这些数据自动在线显示信息,所以REST是首选方式。
有人知道这是否可能吗?
谢谢,
/ J
以下链接指向在拉取请求上列出评论端点。该通话将返回用户详细信息,以便您可以收集评论的数量和执行者的数量。以下是调用的示例:
curl -u< USER>:< API_KEY> https://api.github.com/repos/<owner>/<repo>/pulls/<number>/reviews
您可以自动执行此操作,以便进一步生成您的组织存储库,然后在每个列表中拉出拉取请求的列表库。拉请求的JSON负载将包含您需要用于生成拉请求审阅信息的 id
。
I need to extract information from our private GitHub repo regarding the number of reviews each of our collaborators are doing during a set time period.
I've been reviewing the GitHub documentation but it's not obvious to me if it's even possible using their REST API.
I want to use the data to present the information in a graph online automatically, so REST is the prefered way.
Does anyone know if it's even possible?
Thanks, /J
Here is a link to the list reviews on a pull request endpoint. The call will return user details so you can tally the volume of reviews and who performed them. Here is an example of the call:
curl -u <USER>:<API_KEY> https://api.github.com/repos/<owner>/<repo>/pulls/<number>/reviews
You can automate this further be generating a list of your organization's repositories, then pulling a list of the pull requests in each repository. The JSON payload of pull requests will include the id
you'll need for generating the pull request review information.
这篇关于我需要从我们的项目中收集来自GitHub的评论统计数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!