Skip to content

Commit

Permalink
mass-rebuilder: Alsoremove the internal error label
Browse files Browse the repository at this point in the history
  • Loading branch information
dasJ committed Dec 29, 2024
1 parent 5ed4d64 commit 8f2b796
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ofborg/src/tasks/evaluate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,19 @@ impl<'a, E: stats::SysEvents + 'static> OneEval<'a, E> {
});

match eval_result {
Ok(eval_actions) => eval_actions,
Ok(eval_actions) => {
let issue_ref = self.repo.issue(self.job.pr.number);
update_labels(&issue_ref, &[], &[String::from("ofborg-internal-error")]);

eval_actions
}
Err(Ok(())) => {
// There was an error during eval, but we successfully
// updated the PR.

let issue_ref = self.repo.issue(self.job.pr.number);
update_labels(&issue_ref, &[], &[String::from("ofborg-internal-error")]);

self.actions().skip(self.job)
}
Err(Err(CommitStatusError::ExpiredCreds(e))) => {
Expand Down

0 comments on commit 8f2b796

Please sign in to comment.