Skip to content

Commit

Permalink
GithubStatus: Don't send a pending status for already-finished builds
Browse files Browse the repository at this point in the history
Fixes #488
  • Loading branch information
shlevy committed Jun 21, 2017
1 parent 6e4a7a3 commit 207d2dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/Hydra/Plugin/GithubStatus.pm
Expand Up @@ -32,6 +32,8 @@ sub common {

foreach my $conf (@config) {
next unless $jobName =~ /^$conf->{jobs}$/;
# Don't send out "pending" status updates if the build is already finished
next if !$finished && $b->finished == 1;

my $contextTrailer = $conf->{excludeBuildFromContext} ? "" : (":" . $b->id);
my $body = encode_json(
Expand Down

0 comments on commit 207d2dd

Please sign in to comment.