Commit 0194c3a
committed
Stop parsing when we reach an unknown word
When parsing a @bors command, stop parsing when we reach any unknown
word. This enables commands like
@bors retry (yielding priority to the rollup)
to include a description of why we retried (which gets put in the retry
log) without also setting `rollup`.
The only tricky bit to this is a command like
@bors r=person 0123456789abcdef
where the commit sha is part of the `r=` command, and we need to parse
it that way.1 parent e885dd7 commit 0194c3a
File tree
2 files changed
+37
-6
lines changed- homu
- tests
2 files changed
+37
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
163 | 170 | | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
| 175 | + | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
| |||
238 | 246 | | |
239 | 247 | | |
240 | 248 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 249 | + | |
| 250 | + | |
245 | 251 | | |
246 | 252 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
468 | 493 | | |
469 | 494 | | |
470 | 495 | | |
| |||
0 commit comments