Skip to content

Instantly share code, notes, and snippets.

@lotharschulz
Last active November 2, 2020 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lotharschulz/fe5b2df0419064a53ac16731ef51b484 to your computer and use it in GitHub Desktop.
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
{
"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