2017-06-23 38 views
2

有人可以告訴我 - 在哪裏有一種方法可以使用graphql API獲取所有提交的特定存儲庫的統計信息? 現在我與查詢這樣結束:使用graphql提交來自github的統計信息

query { 
    viewer { 

    repository(name: "CRM_system") { 
    ref(qualifiedName: "master") { 
     target { 
     ... on Commit { 
      id 
      history(since: my_date_time) { 
      edges { 
       node { 
       messageHeadline 
       oid 
       message 
       author { 
        name 
        email 
        date 
       } 
       } 
      } 
      } 
     } 
     } 
    } 
    } 
} 
    } 

但它僅表明「主」和犯規表演統計承諾不惜一切,我想看到類似GitHub的REST API:

stats: { 
total: 27 
additions: 27 
deletions: 0} 
+0

你知道了嗎?我也需要解決方案。 – bart

+0

infortunatelly not,also see https://platform.github.community/t/commit-stats-for-commits-in-repository/2193 – Vova

回答