Commit 5b87b89
committed
fix: throw on non-404 stale label removal errors
Addresses CodeRabbit review feedback. Previously, if the API failed to
remove a stale label (e.g. due to rate limits or network issues), the
error was logged but execution continued. Since the new label was
already added earlier in the function, this left the PR in an invalid
state with multiple mutually-exclusive queue labels.
Now, non-404 errors are explicitly re-thrown to fail the workflow and
alert maintainers, preventing broken label states.
Signed-off-by: darshit2308 <darshit2308@gmail.com>1 parent 96acaa5 commit 5b87b89
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments