1
0
mirror of synced 2025-12-30 03:01:36 -05:00

use shorthand to calm codeql warnings (#27882)

* use shorthand to calm codeql warnings

* there was more
This commit is contained in:
Peter Bengtsson
2022-05-21 14:50:56 -04:00
committed by GitHub
parent f46c1df49a
commit e2ec55c7d8
4 changed files with 28 additions and 28 deletions

View File

@@ -59,7 +59,7 @@ export async function addItemsToProject(items, project) {
`
const newItems = await graphql(mutation, {
project: project,
project,
headers: {
authorization: `token ${process.env.TOKEN}`,
'GraphQL-Features': 'projects_next_graphql',
@@ -221,40 +221,40 @@ export function generateUpdateProjectNextItemFieldMutation({
$authorID: ID!
) {
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$statusID',
value: '$statusValueID',
})}
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$datePostedID',
value: formatDateForProject(datePosted),
literal: true,
})}
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$reviewDueDateID',
value: formatDateForProject(dueDate),
literal: true,
})}
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$contributorTypeID',
value: '$contributorType',
})}
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$sizeTypeID',
value: '$sizeType',
})}
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$featureID',
value: feature,
literal: true,
})}
${generateMutationToUpdateField({
item: item,
item,
fieldID: '$authorID',
value: author,
literal: true,