Skip to content

Commit e2ec55c

Browse files
authored
use shorthand to calm codeql warnings (github#27882)
* use shorthand to calm codeql warnings * there was more
1 parent f46c1df commit e2ec55c

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

.github/actions-scripts/enable-automerge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function main() {
1717
const github = getOctokit(token)
1818
const pull = await github.rest.pulls.get({
1919
owner: org,
20-
repo: repo,
20+
repo,
2121
pull_number: parseInt(prNumber),
2222
})
2323

.github/actions-scripts/fr-add-docs-reviewers-requests.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,16 @@ async function run() {
191191

192192
await graphql(updateProjectNextItemMutation, {
193193
project: projectID,
194-
statusID: statusID,
194+
statusID,
195195
statusValueID: readyForReviewID,
196-
datePostedID: datePostedID,
197-
reviewDueDateID: reviewDueDateID,
198-
contributorTypeID: contributorTypeID,
199-
contributorType: contributorType,
200-
sizeTypeID: sizeTypeID,
196+
datePostedID,
197+
reviewDueDateID,
198+
contributorTypeID,
199+
contributorType,
200+
sizeTypeID,
201201
sizeType: '', // Although we aren't populating size, we are passing the variable so that we can use the shared mutation function
202-
featureID: featureID,
203-
authorID: authorID,
202+
featureID,
203+
authorID,
204204
headers: {
205205
authorization: `token ${process.env.TOKEN}`,
206206
'GraphQL-Features': 'projects_next_graphql',

.github/actions-scripts/projects.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export async function addItemsToProject(items, project) {
5959
`
6060

6161
const newItems = await graphql(mutation, {
62-
project: project,
62+
project,
6363
headers: {
6464
authorization: `token ${process.env.TOKEN}`,
6565
'GraphQL-Features': 'projects_next_graphql',
@@ -221,40 +221,40 @@ export function generateUpdateProjectNextItemFieldMutation({
221221
$authorID: ID!
222222
) {
223223
${generateMutationToUpdateField({
224-
item: item,
224+
item,
225225
fieldID: '$statusID',
226226
value: '$statusValueID',
227227
})}
228228
${generateMutationToUpdateField({
229-
item: item,
229+
item,
230230
fieldID: '$datePostedID',
231231
value: formatDateForProject(datePosted),
232232
literal: true,
233233
})}
234234
${generateMutationToUpdateField({
235-
item: item,
235+
item,
236236
fieldID: '$reviewDueDateID',
237237
value: formatDateForProject(dueDate),
238238
literal: true,
239239
})}
240240
${generateMutationToUpdateField({
241-
item: item,
241+
item,
242242
fieldID: '$contributorTypeID',
243243
value: '$contributorType',
244244
})}
245245
${generateMutationToUpdateField({
246-
item: item,
246+
item,
247247
fieldID: '$sizeTypeID',
248248
value: '$sizeType',
249249
})}
250250
${generateMutationToUpdateField({
251-
item: item,
251+
item,
252252
fieldID: '$featureID',
253253
value: feature,
254254
literal: true,
255255
})}
256256
${generateMutationToUpdateField({
257-
item: item,
257+
item,
258258
fieldID: '$authorID',
259259
value: author,
260260
literal: true,

.github/actions-scripts/ready-for-docs-review.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ async function run() {
171171
const updateProjectNextItemMutation = generateUpdateProjectNextItemFieldMutation({
172172
item: newItemID,
173173
author: firstTimeContributor ? 'first time contributor' : process.env.AUTHOR_LOGIN,
174-
turnaround: turnaround,
175-
feature: feature,
174+
turnaround,
175+
feature,
176176
})
177177

178178
// Determine which variable to use for the contributor type
@@ -192,16 +192,16 @@ async function run() {
192192

193193
await graphql(updateProjectNextItemMutation, {
194194
project: projectID,
195-
statusID: statusID,
195+
statusID,
196196
statusValueID: readyForReviewID,
197-
datePostedID: datePostedID,
198-
reviewDueDateID: reviewDueDateID,
199-
contributorTypeID: contributorTypeID,
200-
contributorType: contributorType,
201-
sizeTypeID: sizeTypeID,
202-
sizeType: sizeType,
203-
featureID: featureID,
204-
authorID: authorID,
197+
datePostedID,
198+
reviewDueDateID,
199+
contributorTypeID,
200+
contributorType,
201+
sizeTypeID,
202+
sizeType,
203+
featureID,
204+
authorID,
205205
headers: {
206206
authorization: `token ${process.env.TOKEN}`,
207207
'GraphQL-Features': 'projects_next_graphql',

0 commit comments

Comments
 (0)