GithubStatus: Don't send a pending status for already-finished builds
Fixes #488
This commit is contained in:
parent
6e4a7a30f7
commit
207d2dd10c
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue