GithubStatus: Don't send a pending status for already-finished builds

Fixes #488
This commit is contained in:
Shea Levy 2017-06-21 14:51:03 -04:00
parent 6e4a7a30f7
commit 207d2dd10c

View file

@ -32,6 +32,8 @@ sub common {
foreach my $conf (@config) { foreach my $conf (@config) {
next unless $jobName =~ /^$conf->{jobs}$/; 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 $contextTrailer = $conf->{excludeBuildFromContext} ? "" : (":" . $b->id);
my $body = encode_json( my $body = encode_json(