Last active
May 8, 2022 13:59
-
-
Save nicokosi/bddd56c6e5a48f6039be0402f6a8a0b3 to your computer and use it in GitHub Desktop.
GitHub GraphQL API (https://docs.github.com/en/graphql) queries that can be executed via the explorer (https://docs.github.com/en/graphql/overview/explorer).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
repository(owner: "softwarevidal", name: "arthur") { | |
pullRequests(states: [OPEN]) { | |
totalCount | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
repository(owner: "softwarevidal", name: "arthur") { | |
pullRequests(last: 20, states: MERGED) { | |
totalCount, | |
edges { | |
node { | |
id, | |
number, | |
title | |
createdAt, | |
updatedAt | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query MergedPullRequests { | |
repository(name: "pullpito", owner: "nicokosi") { | |
pullRequests(last: 30) { | |
edges { | |
node { | |
title | |
createdAt | |
createdBy: author { | |
login | |
} | |
timelineItems(last: 10, since: "2017-01-01T10:28:04Z") { | |
edges { | |
node { | |
... on MergedEvent { | |
mergedAt: createdAt | |
mergedBy: actor { | |
login | |
} | |
} | |
... on ClosedEvent { | |
closedAt: createdAt | |
closedBy: actor { | |
login | |
} | |
} | |
... on IssueComment { | |
commentedBy: author { | |
login | |
} | |
comment: bodyText | |
publishedAt | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
repository(owner: "docker", name: "docker-ce") { | |
pullRequests(last: 10) { | |
edges { | |
node { | |
createdAt | |
author { | |
login | |
} | |
number | |
timelineItems(last: 10, since: "2020-02-01T10:28:04Z") { | |
edges { | |
node { | |
... on Comment { | |
__typename | |
createdAt | |
author { | |
login | |
} | |
} | |
... on MergedEvent { | |
__typename | |
createdAt | |
__typename | |
actor { | |
login | |
} | |
} | |
... on ClosedEvent { | |
__typename | |
createdAt | |
actor { | |
login | |
} | |
} | |
... on PullRequestReview { | |
__typename | |
createdAt | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
repository(owner: "softwarevidal", name: "arthur") { | |
repositoryTopics(last: 20) { | |
nodes { | |
topic { | |
name | |
} | |
} | |
}, | |
description, | |
collaborators { | |
edges { | |
node { | |
login | |
} | |
} | |
}, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
search(type: REPOSITORY, query: "org:softwarevidal topic:sentinel", first: 100) { | |
repos: edges { | |
repo: node { | |
... on Repository { | |
name | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment