Commit 345b5f6
feat: restrict the queue and logs links on merge-queue batch PRs
Batch PRs get a reduced link set: the logs link is dropped (event logs are not
supported for batches yet), and the queue link is shown only while the batch PR
is open — once it closes the batch has drained out of the queue, so the deep
link has nothing to open. An open batch PR keeps the batch_pr queue deep-link;
other PRs are unchanged.
A closed batch PR loses its Draft pill, so it is recognized by Mergify authorship
instead; this also covers closed Mergify config/backport PRs, whose queue and
logs links point nowhere useful either. The gating is centralized in
appendBatchAwareLinks(), shared by the default/rich and sidebar rows.
MRGFY-7878
Test plan:
- npx jest (278 passing) — open batch PR (queue=batch_pr, no logs), closed batch
PR (neither link), open non-batch PR (both links), closed human PR unaffected.
- npx biome check — clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015qcXJDQnrrJU4Xu6BxmQz8
Change-Id: I23862d88938847449dc1a1ed7b7ed86f9cef38111 parent 38d6f5f commit 345b5f6
2 files changed
Lines changed: 85 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
| 684 | + | |
683 | 685 | | |
684 | 686 | | |
685 | 687 | | |
| |||
882 | 884 | | |
883 | 885 | | |
884 | 886 | | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
170 | 181 | | |
| |||
521 | 532 | | |
522 | 533 | | |
523 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
524 | 550 | | |
525 | 551 | | |
526 | 552 | | |
| |||
652 | 678 | | |
653 | 679 | | |
654 | 680 | | |
655 | | - | |
656 | | - | |
| 681 | + | |
657 | 682 | | |
658 | 683 | | |
659 | 684 | | |
| |||
957 | 982 | | |
958 | 983 | | |
959 | 984 | | |
960 | | - | |
961 | | - | |
| 985 | + | |
962 | 986 | | |
963 | 987 | | |
964 | 988 | | |
| |||
0 commit comments