Commit 853a7f2
authored
[BE] [PyTorchBot] More understandable error message when labels cannot be added (#6088)
Fixes #5900
When a `ciflow` label is added to a PR, we normally trigger workflows
against it. However, if the PR has not yet been authorized to actually
run workflows then we do not allow the label to be added. (This feature
was added by #4892)
This change improves the reasoning given by the error messages, making
it easier for the reviewer to understand why a label was not added to
the PR and the steps they need to take to actually add the desired
label.1 parent 261e7f9 commit 853a7f2
File tree
3 files changed
+13
-4
lines changed- torchci
- lib/bot
- test
3 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
487 | 490 | | |
488 | 491 | | |
489 | 492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
0 commit comments