@@ -143,15 +143,22 @@ jobs:
143143 id
144144 content{
145145 __typename
146- ... on PullRequest { number repository{ name } }
146+ ... on PullRequest {
147+ number
148+ repository { name }
149+ }
147150 }
148- fieldValues(first:50 ){
151+ fieldValues(first:100 ){
149152 nodes{
150153 __typename
151154 ... on ProjectV2ItemFieldDateValue {
152155 field { ... on ProjectV2Field { id name } }
153156 date
154157 }
158+ ... on ProjectV2ItemFieldTextValue {
159+ field { ... on ProjectV2Field { id name } }
160+ text
161+ }
155162 ... on ProjectV2ItemFieldSingleSelectValue {
156163 field { ... on ProjectV2SingleSelectField { id name } }
157164 name
@@ -160,13 +167,17 @@ jobs:
160167 }
161168 }
162169 }
163- pageInfo{ hasNextPage endCursor }
170+ pageInfo {
171+ hasNextPage
172+ endCursor
173+ }
164174 }
165175 }
166176 }
167177 }`,
168178 { org: orgLogin, num: projectNumber, after: cursor }
169179 );
180+
170181 const page = r.organization.projectV2.items;
171182 for (const n of page.nodes) yield n;
172183 if (!page.pageInfo.hasNextPage) break;
@@ -209,7 +220,7 @@ jobs:
209220 if (status === STATUS_DONE && toDate(lrd) <= toDate(sixMonthsAgoISO)) {
210221 await setStatus(itemId, statusFieldId, maintId);
211222 movedDoneToMaint++;
212- const line = `[Cron] Moved ${lastTwoSegments} → Maintenance (LRD ${lrd} ≤ ${sixMonthsAgoISO}) | ${lastTwoSegments} `;
223+ const line = `[Cron] Moved ${lastTwoSegments} → Maintenance (LRD ${lrd} ≤ ${sixMonthsAgoISO})`;
213224 console.log(line);
214225 moveLog.push(line);
215226 continue; // skip second rule for same item
@@ -219,7 +230,7 @@ jobs:
219230 if (status === STATUS_MAINT && toDate(lrd) > toDate(sixMonthsAgoISO)) {
220231 await setStatus(itemId, statusFieldId, doneId);
221232 movedMaintToDone++;
222- const line = `[Cron] Moved ${lastTwoSegments} → Done (LRD ${lrd} > ${sixMonthsAgoISO}) | ${lastTwoSegments} `;
233+ const line = `[Cron] Moved ${lastTwoSegments} → Done (LRD ${lrd} > ${sixMonthsAgoISO})`;
223234 console.log(line);
224235 moveLog.push(line);
225236 }
0 commit comments