Variable addProjectItemMutation

Source
Expand description

GraphQL mutation for adding an item to a GitHub project.

remarks

This mutation adds a content item (such as an issue or pull request) to a GitHub Project V2. It requires the project ID, content ID, and field name as parameters.

example
mutation addProjectItem($projectId:ID!, $contentId:ID!, $fieldName: String!) {
addProjectV2ItemById(input: {projectId: $projectId, contentId: $contentId}) {
item {
id,
fieldValueByName(name: $fieldName) {
... on ProjectV2ItemFieldNumberValue { number },
... on ProjectV2ItemFieldDateValue { date }
}
}
}
}
const addProjectItemMutation: string...