Skip to content

Commit

Permalink
Use a different mapping where only actual build failures are 'failure…
Browse files Browse the repository at this point in the history
…' in GH commit status
  • Loading branch information
rbvermaa committed Jan 7, 2025
1 parent 7c66d4a commit bb53b2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/Hydra/Plugin/GithubStatus.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ sub toGithubState {
my ($buildStatus) = @_;
if ($buildStatus == 0) {
return "success";
} elsif ($buildStatus == 3 || $buildStatus == 4 || $buildStatus == 8 || $buildStatus == 10 || $buildStatus == 11) {
return "error";
} elif ($buildStatus == 1 || $buildStatus == 6 || $buildStatus == 7) {
return "failure"
} else {
return "failure";
return "error";
}
}

Expand Down

0 comments on commit bb53b2c

Please sign in to comment.