Skip to content

GraphQL: Get file content for a specific file in each repo #32469

Answered by byrneh
rajbos asked this question in API and Webhooks
Discussion options

You must be logged in to vote

Hi @rajbos, I believe this is the answer you are looking for.

query {
organization(login:"actions") {
repositories(first: 10) {
nodes{
name
content_a: object(expression: "HEAD:action.yml"){
... on Blob {
text
byteSize
}
}
content_b: object(expression: "HEAD:action.yaml"){
... on Blob {
text
byteSize
}
}
}
}
}
}

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@rajbos
Comment options

@yc1838
Comment options

@maciekbanas
Comment options

@Shibayan95
Comment options

@maciekbanas
Comment options

Answer selected by rajbos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions and conversations related to APIs or Webhooks Product Feedback
6 participants