Repository navigation
Commit 7d62fba
committed
fix(ci): label-pr reads the paginated PR file list
gh pr diff --name-only fetches the whole diff, which GitHub refuses
for a PR of more than 300 files (HTTP 406, "the diff exceeded the
maximum number of files (300)"; reproduced on nodejs/node#66546 with
gh 2.93.0). The labeling job would fail on such a PR and skip the
board step after it. The legacy actions/labeler read the file list.
label-pr now reads repos/{repo}/pulls/{n}/files with --paginate and
fails closed (VARIABLES-0002) when the list is shorter than the
event's changed_files, since that API stops at 3000 files.1 parent a479273 commit 7d62fba
2 files changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2446 | 2446 | | |
2447 | 2447 | | |
2448 | 2448 | | |
2449 | | - | |
| 2449 | + | |
2450 | 2450 | | |
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
2454 | | - | |
| 2454 | + | |
2455 | 2455 | | |
2456 | | - | |
| 2456 | + | |
2457 | 2457 | | |
2458 | | - | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
2459 | 2464 | | |
2460 | 2465 | | |
2461 | 2466 | | |
2462 | 2467 | | |
2463 | 2468 | | |
2464 | 2469 | | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
2465 | 2475 | | |
2466 | 2476 | | |
2467 | 2477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2601 | 2601 | | |
2602 | 2602 | | |
2603 | 2603 | | |
2604 | | - | |
| 2604 | + | |
2605 | 2605 | | |
2606 | | - | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
2607 | 2620 | | |
2608 | 2621 | | |
2609 | 2622 | | |
| |||
0 commit comments