Commit fc1ff27
[no-ci] fix(ci): pr-metadata-check — blocked-label bug, exact match, multi-word labels (#1836)
* Fix blocked-label check falsely matching "documentation"
The blocked-patterns loop word-split "DO NOT MERGE" into individual
words, so "DO" matched as a substring of "documentation" via grep.
Replace with a single grep -qiE regex and read labels line-by-line
from jq to also handle multi-word label names correctly.
Made-with: Cursor
* Apply reviewer suggestion: Match blocked labels exactly (case-insensitively)
Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com>
* fix(ci): iterate PR labels line-wise for module/type checks
Shell word-splitting on $LABEL_NAMES broke multi-word GitHub label names.
Read jq output with while read and build LABEL_LIST from the same jq stream.
Made-with: Cursor
* fix(ci): show GitHub casing for blocked-label errors
Emit each label's original .name from the PR payload when it matches the
blocked list case-insensitively, instead of lowercased names from jq.
Made-with: Cursor
---------
Co-authored-by: Phillip Cloud <417981+cpcloud@users.noreply.github.com>1 parent d427c9b commit fc1ff27
1 file changed
Lines changed: 24 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
110 | | - | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
0 commit comments