Created
January 10, 2023 07:42
-
-
Save viktorbezdek/25f26e881b8806cc7ed25ba17531f178 to your computer and use it in GitHub Desktop.
Github GraphQL API queries
This file contains hidden or 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 OrgTeams($org: String!) { | |
organization(login: $org) { | |
teams(first: 100) { | |
pageInfo { | |
endCursor | |
hasNextPage | |
} | |
nodes { | |
name | |
} | |
} | |
} | |
} |
This file contains hidden or 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 UserOrgTeams($user: String!, $org: String!) { | |
user(login: $user) { | |
organization(login:$org) { | |
teams(first:50, userLogins: [$user]) { | |
nodes { | |
name | |
} | |
} | |
} | |
} | |
} |
This file contains hidden or 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 UserPullRequests($user: String!) { | |
user(login: $user) { | |
pullRequests(first: 50, orderBy: {field: CREATED_AT, direction: DESC}) { | |
totalCount | |
edges { | |
cursor | |
node { | |
state | |
createdAt | |
repository { | |
name | |
} | |
mergedAt | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment