Home > OS >  Find the size of the specific document in a branch of a repository owned by someone else
Find the size of the specific document in a branch of a repository owned by someone else

Time:12-28

I would like to find the size of the document named “foo” in master branch of boo repository owned by johndoe.

I am using https://docs.github.com/en/graphql/overview/explorer to make the query.

Any suggestion?

CodePudding user response:

{
  user(login:"johndoe"){
    repository(name:"boo") {
      object(expression: "master:foo") {
        ... on Blob {
          byteSize
        }
      }
    }
  }
}

  • Related