Created
February 27, 2023 20:38
-
-
Save malantin/aedd73e3fd3889d227cc834c57782e15 to your computer and use it in GitHub Desktop.
Get all teams and their permissions on repositories via GraphQL
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 | |
{ | |
organization(login: "octodemo") { | |
teams(first: 100, after: null) { | |
nodes { | |
name | |
repositories { | |
nodes { | |
name | |
viewerPermission | |
} | |
} | |
} | |
pageInfo { | |
hasNextPage | |
endCursor | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment