2013-04-05 3 views

回答

1

使用GraphQL API v4,爲默認分支的文件時,這將是:

{ 
    repository(owner: "izuzak", name: "pmrpc") { 
    defaultBranchRef{ 
     target { 
     ...on Commit{ 
      history(first:100,path: "README.markdown"){ 
      nodes { 
       author { 
       email 
       } 
       message 
       oid 
      } 
      } 
     } 
     } 
    } 
    } 
} 

Try it in the explorer

相關問題