Skip to content

Commit d57dc8c

Browse files
Updates to migrate from custom "Review due date" to native "Target Da… (#59170)
1 parent ae11beb commit d57dc8c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/workflows/fr-add-docs-reviewers-requests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async function run() {
154154

155155
// Get the ID of the fields that we want to populate
156156
const datePostedID = findFieldID('Date posted', projectData)
157-
const reviewDueDateID = findFieldID('Review due date', projectData)
157+
const targetDateID = findFieldID('Target Date', projectData)
158158
const statusID = findFieldID('Status', projectData)
159159
const featureID = findFieldID('Feature', projectData)
160160
const contributorTypeID = findFieldID('Contributor type', projectData)
@@ -208,7 +208,7 @@ async function run() {
208208
statusID,
209209
statusValueID: readyForReviewID,
210210
datePostedID,
211-
reviewDueDateID,
211+
targetDateID,
212212
contributorTypeID,
213213
contributorType,
214214
sizeTypeID,

src/workflows/projects.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function calculateDueDate(datePosted: Date, turnaround = 2) {
181181
// generates a GraphQL mutation to populate:
182182
// - "Status" (as variable passed with the request)
183183
// - "Date posted" (as today)
184-
// - "Review due date" (as today + {turnaround} weekdays)
184+
// - "Target Date" (as today + {turnaround} weekdays)
185185
// - "Contributor type" (as variable passed with the request)
186186
// - "Feature" (as {feature})
187187
// - "Author" (as {author})"
@@ -241,7 +241,7 @@ export function generateUpdateProjectV2ItemFieldMutation({
241241
$statusID: ID!
242242
$statusValueID: String!
243243
$datePostedID: ID!
244-
$reviewDueDateID: ID!
244+
$targetDateID: ID!
245245
$contributorTypeID: ID!
246246
$contributorType: String!
247247
$sizeTypeID: ID!
@@ -264,7 +264,7 @@ export function generateUpdateProjectV2ItemFieldMutation({
264264
})}
265265
${generateMutationToUpdateField({
266266
item,
267-
fieldID: '$reviewDueDateID',
267+
fieldID: '$targetDateID',
268268
value: formatDateForProject(dueDate),
269269
fieldType: 'date',
270270
literal: true,

src/workflows/ready-for-docs-review.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async function run() {
134134

135135
// Get the ID of the fields that we want to populate
136136
const datePostedID = findFieldID('Date posted', data)
137-
const reviewDueDateID = findFieldID('Review due date', data)
137+
const targetDateID = findFieldID('Target Date', data)
138138
const statusID = findFieldID('Status', data)
139139
const featureID = findFieldID('Feature', data)
140140
const contributorTypeID = findFieldID('Contributor type', data)
@@ -263,7 +263,7 @@ async function run() {
263263
statusID,
264264
statusValueID: readyForReviewID,
265265
datePostedID,
266-
reviewDueDateID,
266+
targetDateID,
267267
contributorTypeID,
268268
contributorType,
269269
sizeTypeID,

0 commit comments

Comments
 (0)