Skip to content

Instantly share code, notes, and snippets.

@wraithgar
Last active December 6, 2022 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wraithgar/90c41733170578b8aa21ed08cb9fdd9b to your computer and use it in GitHub Desktop.
Save wraithgar/90c41733170578b8aa21ed08cb9fdd9b to your computer and use it in GitHub Desktop.
graphql dependabot open issues query
query {
search (query: "org:npm topic:npm-cli", type: REPOSITORY, first:100) {
nodes {
... on Repository {
nameWithOwner
pullRequests (labels: ["autorelease: pending"], first:100, states: [OPEN]) {
nodes {
number
url
title
}
}
}
}
}
}
query {
search (query: "org:npm topic:npm-cli", type: REPOSITORY, first:100) {
nodes {
... on Repository {
nameWithOwner
pullRequests (labels: ["dependencies"], first:100, states: [OPEN]) {
nodes {
number
url
title
}
}
}
}
}
}
@wraithgar
Copy link
Author

wraithgar commented Feb 14, 2022

gh alias set dependabot "api "/graphql" -F query=@/Users/wraithgar/Development/graphql/npm-cli-dependencies-prs.graphql --jq '.data.search.nodes[]|{ name: .nameWithOwner, pr: .pullRequests.nodes[]}|\"\(.name)\t\(.pr.number)\t\(.pr.title)\"'"

@wraithgar
Copy link
Author

wraithgar commented Feb 14, 2022

gh alias set autoreleases "api "/graphql" -F query=@/Users/wraithgar/Development/graphql/npm-cli-autorelease-prs.graphql --jq '.data.search.nodes[]|{ name: .nameWithOwner, pr: .pullRequests.nodes[]}|\"\(.name)\t\(.pr.number)\t\(.pr.title)\"'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment