Skip to content

Instantly share code, notes, and snippets.

@PierreRochard
Created June 9, 2019 16:34
Show Gist options
  • Save PierreRochard/6b0c01c7aab7bcea87095c7e442b78a7 to your computer and use it in GitHub Desktop.
Save PierreRochard/6b0c01c7aab7bcea87095c7e442b78a7 to your computer and use it in GitHub Desktop.
query($prNumber: Int = 15024){
rateLimit {
limit
cost
remaining
resetAt
}
repository(owner: "bitcoin", name: "bitcoin") {
pullRequest(number: $prNumber) {
id
number
title
mergeable
labels(last: 100) {
totalCount
nodes {
id
name
color
}
}
projectCards(last: 100, archivedStates:[ARCHIVED, NOT_ARCHIVED]) {
totalCount
nodes {
id
column {
id
name
}
project {
id
number
state
}
createdAt
updatedAt
}
}
author {
login
url
avatarUrl
}
bodyHTML
additions
deletions
createdAt
updatedAt
mergedAt
closedAt
state
reviews(last: 100) {
totalCount
nodes {
id
publishedAt
author {
login
avatarUrl
}
body
url
}
}
comments(last: 100) {
totalCount
nodes {
id
publishedAt
author {
login
avatarUrl
}
body
url
}
}
commits(last: 1) {
totalCount
nodes {
commit {
oid
status {
state
contexts {
description
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment