Commit 4c68b1b
Add node IDs to project resolver results
Split out of #2903 as a small prerequisite refactor.
- Add a NodeID field to ResolvedField, populated for all three field
variants in listAllProjectFields.
- Refactor resolveProjectItemIDByIssueNumber into a thin wrapper over a
new resolveProjectItemByIssueNumber that also returns the item node ID,
delegating to resolveProjectItemByIssueNumberWithProjectID for an
already-resolved project ID. The projectItems query now selects the
item node ID alongside its full database ID.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 89f897b0-115f-4435-a071-46fb6c49be861 parent 9d13004 commit 4c68b1bCopy full SHA for 4c68b1b
2 files changed
+31-12Lines changed: 31 additions & 12 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- pkg/github
Expand file treeCollapse file tree
Open diff view settings
Collapse file
pkg/github/projects_resolver.go
Copy file name to clipboardExpand all lines: pkg/github/projects_resolver.go+22-9Lines changed: 22 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
24 | | - |
| 23 | + |
| 24 | + |
25 | 25 | |
26 | 26 | |
| 27 | + |
27 | 28 | |
28 | 29 | |
29 | 30 | |
| ||
117 | 118 | |
118 | 119 | |
119 | 120 | |
| 121 | + |
120 | 122 | |
121 | 123 | |
122 | 124 | |
123 | 125 | |
124 | 126 | |
125 | 127 | |
126 | 128 | |
| 129 | + |
127 | 130 | |
128 | 131 | |
129 | 132 | |
130 | 133 | |
131 | 134 | |
132 | 135 | |
| 136 | + |
133 | 137 | |
134 | 138 | |
135 | 139 | |
| ||
266 | 270 | |
267 | 271 | |
268 | 272 | |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
269 | 278 | |
270 | 279 | |
271 | | - |
| 280 | + |
272 | 281 | |
| 282 | + |
| 283 | + |
273 | 284 | |
| 285 | + |
274 | 286 | |
275 | 287 | |
| 288 | + |
276 | 289 | |
277 | 290 | |
278 | 291 | |
| ||
296 | 309 | |
297 | 310 | |
298 | 311 | |
299 | | - |
| 312 | + |
300 | 313 | |
301 | 314 | |
302 | 315 | |
303 | 316 | |
304 | 317 | |
305 | 318 | |
306 | | - |
| 319 | + |
307 | 320 | |
308 | | - |
| 321 | + |
309 | 322 | |
310 | | - |
| 323 | + |
311 | 324 | |
312 | 325 | |
313 | 326 | |
| ||
324 | 337 | |
325 | 338 | |
326 | 339 | |
327 | | - |
| 340 | + |
328 | 341 | |
329 | 342 | |
330 | 343 | |
331 | 344 | |
332 | | - |
| 345 | + |
333 | 346 | |
334 | 347 | |
335 | 348 | |
|
Collapse file
pkg/github/projects_resolver_test.go
Copy file name to clipboardExpand all lines: pkg/github/projects_resolver_test.go+9-3Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
204 | 204 | |
205 | 205 | |
206 | 206 | |
| 207 | + |
207 | 208 | |
208 | 209 | |
209 | 210 | |
| ||
220 | 221 | |
221 | 222 | |
222 | 223 | |
| 224 | + |
223 | 225 | |
224 | 226 | |
225 | 227 | |
| ||
282 | 284 | |
283 | 285 | |
284 | 286 | |
| 287 | + |
285 | 288 | |
286 | 289 | |
287 | 290 | |
| ||
300 | 303 | |
301 | 304 | |
302 | 305 | |
303 | | - |
| 306 | + |
304 | 307 | |
| 308 | + |
305 | 309 | |
306 | 310 | |
307 | 311 | |
308 | | - |
| 312 | + |
309 | 313 | |
310 | 314 | |
311 | 315 | |
| ||
367 | 371 | |
368 | 372 | |
369 | 373 | |
| 374 | + |
370 | 375 | |
371 | 376 | |
372 | 377 | |
| ||
385 | 390 | |
386 | 391 | |
387 | 392 | |
388 | | - |
| 393 | + |
389 | 394 | |
| 395 | + |
390 | 396 | |
391 | 397 | |
392 | 398 | |
|
0 commit comments