Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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