Skip to content

Instantly share code, notes, and snippets.

@jpoehnelt
Created February 6, 2020 09:15
Show Gist options
  • Save jpoehnelt/445d658cf36a178641d7b8039939f507 to your computer and use it in GitHub Desktop.
Save jpoehnelt/445d658cf36a178641d7b8039939f507 to your computer and use it in GitHub Desktop.
query {
rateLimit {
limit
cost
remaining
resetAt
}
repository(owner: "${owner}", name: "${name}") {
description
issues(last: 10) {
nodes {
comments(last: 10) {
nodes {
author {
login
}
authorAssociation
}
}
}
}
defaultBranchRef {
target {
... on Commit {
history(first: 100, since: "${moment().subtract(30, "days").toISOString()}") {
nodes {
message
status {
state
}
author {
user {
login
}
email
}
committedDate
}
}
}
}
}
forkCount
hasIssuesEnabled
usesCustomOpenGraphImage
openIssues: issues(states: OPEN) {
totalCount
}
closedIssues: issues(states: CLOSED) {
totalCount
}
branchProtectionRules(first: 10) {
nodes {
pattern
requiredStatusCheckContexts
requiresStatusChecks
requiresApprovingReviews
}
}
collaborators(first: 100, affiliation: DIRECT) {
nodes {
login
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment