Commit 55380ba
committed
fix: replace uses of Parameters.is_try() with level check
In the Github world, what is considered "try" or not is much less
defined than it is on hgmo. Currently we have "enterprise-firefox-try",
"firefox-dev" and "staging-firefox" that are all "try-like" in that they
will run tasks on any arbitrary branch push.
We can no longer rely on the magic string "try" being present in the
repo name to determine this, and imo nor should we ever have been.
At least in this repo, all uses of `is_try()` are probably better off
just using `level == 1` instead.
Bug: 20443301 parent e3fbacf commit 55380ba
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
461 | | - | |
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
465 | | - | |
| 463 | + | |
466 | 464 | | |
467 | 465 | | |
468 | 466 | | |
| |||
484 | 482 | | |
485 | 483 | | |
486 | 484 | | |
487 | | - | |
| 485 | + | |
488 | 486 | | |
489 | 487 | | |
490 | 488 | | |
| |||
999 | 997 | | |
1000 | 998 | | |
1001 | 999 | | |
1002 | | - | |
| 1000 | + | |
1003 | 1001 | | |
1004 | 1002 | | |
1005 | 1003 | | |
| |||
0 commit comments