'Update github repository description via graphql
This is the GraphQL query for GitHub's API:
mutation {
updateProject(input: {
projectId: "MDEwOlJlcG9zaXRvcnkxMTY0ODYzMDc",
body: "Testing tusting",
state: OPEN
}) {
clientMutationId
}
}
I'm getting this error message:
"message": "Could not resolve to Project node with the global id of 'MDEwOlJlcG9zaXRvcnkxMTY0ODYzMDc'.",
What is wrong here? I'm trying to update a repository description.
Solution 1:[1]
Your question title mentions "repository description", but the GraphQL query is full of "project" references. If you want to update a repo description, you need to use mutation updateRepository.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Aurelien Ribon |
