Last active
November 2, 2020 07:26
-
-
Save lotharschulz/fe5b2df0419064a53ac16731ef51b484 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 - archive repository graphql mutation
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": "mutation ArchiveRepository ($mutationId: String!, $repoID: String!) {archiveRepository(input:{clientMutationId:$mutationId, repositoryId:$repoID}) {repository { isArchived, description } } }", | |
"variables": { | |
"mutationId": "true", | |
"repoID": "[repo id]" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment