Commit 8453867
authored
feat(issue): carry upstream comments into the mirror on issue pull (#50)
* feat(issue): carry upstream comments into the mirror on issue pull
`venfork issue pull` only copied the upstream issue body, dropping the
comment thread the team needs for triage. Fetch comments via
`gh issue view --json ...,comments` and snapshot them into the mirror
issue body under an "Upstream comments" section.
Comments flow upstream->mirror only; `issue stage` still promotes the
body alone (redacted), so internal comments are never pushed upstream.
* refactor(issue): mark comment body optional, cover render path in pull test
Address self-review: IssueComment.body is optional to match the renderer's
defensive `c.body?.trim()`, and the issue-pull unit test mock now includes a
comment so the in-command render path is exercised.1 parent 06c9ce8 commit 8453867
4 files changed
Lines changed: 75 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2572 | 2572 | | |
2573 | 2573 | | |
2574 | 2574 | | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
2575 | 2595 | | |
2576 | 2596 | | |
2577 | 2597 | | |
| |||
3156 | 3176 | | |
3157 | 3177 | | |
3158 | 3178 | | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
3159 | 3187 | | |
3160 | 3188 | | |
3161 | 3189 | | |
3162 | 3190 | | |
3163 | 3191 | | |
3164 | 3192 | | |
3165 | 3193 | | |
| 3194 | + | |
3166 | 3195 | | |
3167 | 3196 | | |
3168 | 3197 | | |
| |||
3173 | 3202 | | |
3174 | 3203 | | |
3175 | 3204 | | |
3176 | | - | |
| 3205 | + | |
3177 | 3206 | | |
3178 | 3207 | | |
3179 | 3208 | | |
| |||
3361 | 3390 | | |
3362 | 3391 | | |
3363 | 3392 | | |
3364 | | - | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
3365 | 3397 | | |
3366 | 3398 | | |
3367 | 3399 | | |
3368 | | - | |
| 3400 | + | |
3369 | 3401 | | |
3370 | 3402 | | |
3371 | 3403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
3430 | 3431 | | |
3431 | 3432 | | |
3432 | 3433 | | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
3433 | 3441 | | |
3434 | 3442 | | |
3435 | 3443 | | |
| |||
3458 | 3466 | | |
3459 | 3467 | | |
3460 | 3468 | | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
3461 | 3492 | | |
3462 | 3493 | | |
3463 | 3494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
491 | 495 | | |
492 | 496 | | |
493 | 497 | | |
| |||
511 | 515 | | |
512 | 516 | | |
513 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
514 | 521 | | |
515 | 522 | | |
516 | 523 | | |
| |||
0 commit comments