Last active
November 2, 2020 07:41
-
-
Save lotharschulz/e9e32c95ff8901475e00eb4506b26b4e to your computer and use it in GitHub Desktop.
https://www.lotharschulz.info/2020/11/02/repository-archiving-unarchiving-with-github-graphql-api/ GitHub graphql API sample code - find a repository id
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": "query ($org: String!, $repo: String!) {repository(owner: $org, name: $repo) { id isArchived } }", | |
"variables": { | |
"org": "[github user or org]", | |
"repo": "[repository]" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment