0

我试图获取作者被选为用户的存储库列表和拉取请求。

我试过这个

{
  user(login:"s8sachin"){
    repositories(first: 100){
      nodes{
        name
        pullRequests{
          totalCount // this gives me count of PR from all collaborators 
        }
      }
    }
  }
}

因为这给了我所有合作者的 PR 计数,我试图只计算"s8sachin"

有没有办法做到这一点?请帮我。谢谢

4

2 回答 2

0

目前无法做到这一点,但您可以在https://platform.github.community/c/graphql-api上使用schema-request标签提出架构请求。理想情况下,这将是authoredBy关于连接的争论pullRequests

query($owner:String!,$name:String!,$authoredBy:String!) {
  repository(owner:$owner,name:$name) {
    pullRequests(authoredBy:$login) {
      totalCount
    }
  }
}
于 2018-06-22T19:38:00.893 回答
0

您可以安装 github 应用PR 计数以查看每个选定 repo 的每人 PR 计数。

于 2020-12-13T23:21:55.497 回答