Commit 137bf67
committed
fix: harden labeler generator against silent data loss
- readDir now fails loudly instead of returning [] on error, so a
missing/renamed primary input dir aborts instead of silently dropping
product rules and overwriting labeler.yml
- refuse to write labeler.yml when no rules were generated
- merge special rule globs with any existing rule instead of
overwriting, so a future docs dir named changelog/email-routing
wouldn't silently replace the special rule
Regenerating also picks up src/assets/images/sandbox/** for
product:sandbox (previously missed due to a stale working tree).1 parent 62f66bf commit 137bf67
2 files changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| 652 | + | |
652 | 653 | | |
653 | 654 | | |
654 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
| |||
147 | 141 | | |
148 | 142 | | |
149 | 143 | | |
150 | | - | |
| 144 | + | |
151 | 145 | | |
152 | 146 | | |
153 | 147 | | |
| |||
186 | 180 | | |
187 | 181 | | |
188 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
0 commit comments