GraphQL: Get file content for a specific file in each repo #32469
Answered
by
byrneh
rajbos
asked this question in
API and Webhooks
-
I'm trying to get the data I want from an organization in one go and can't figure out how to filter the objects down to the two filenames I want: This is what I got so far:
|
Beta Was this translation helpful? Give feedback.
Answered by
byrneh
Sep 11, 2022
Replies: 1 comment 6 replies
-
Hi @rajbos, I believe this is the answer you are looking for. query { |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
rajbos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
}
}
}
}
}
}