1
0
mirror of synced 2026-01-08 03:01:54 -05:00

Merge pull request #11196 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2021-10-15 18:57:00 -04:00
committed by GitHub

View File

@@ -164,10 +164,13 @@ export function generateUpdateProjectNextItemFieldMutation({
function generateMutationToUpdateField({ item, fieldID, value, literal = false }) {
const parsedValue = literal ? `value: "${value}"` : `value: ${value}`
// Strip "=" out of the item ID when creating the mutation ID to avoid a GraphQL parsing error
// Strip all non-alphanumeric out of the item ID when creating the mutation ID to avoid a GraphQL parsing error
// (statistically, this should still give us a unique mutation ID)
return `
set_${fieldID.substr(1)}_item_${item.replaceAll('=', '')}: updateProjectNextItemField(input: {
set_${fieldID.substr(1)}_item_${item.replaceAll(
/[^a-z0-9]/g,
''
)}: updateProjectNextItemField(input: {
projectId: $project
itemId: "${item}"
fieldId: ${fieldID}