Skip to content

Instantly share code, notes, and snippets.

@lotharschulz
Last active October 17, 2022 13:54
Show Gist options
  • Save lotharschulz/1a708469b8985210e95884609da2438e to your computer and use it in GitHub Desktop.
Save lotharschulz/1a708469b8985210e95884609da2438e 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 - unarchive repository graphql mutation
{
"query": "mutation UnArchiveRepository ($mutationId: String!, $repoID: String!) {unarchiveRepository(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