Merge pull request #826 from Taneb/patch-2

Remove Debug prints from GitLabStatus.pm
This commit is contained in:
Eelco Dolstra 2020-11-02 12:13:42 +01:00 committed by GitHub
commit d50f9a242f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,6 @@ sub common {
my $ua = LWP::UserAgent->new(); my $ua = LWP::UserAgent->new();
foreach my $conf (@config) { foreach my $conf (@config) {
print STDERR "GithubStatus_Debug job name $jobName\n";
next unless $jobName =~ /^$conf->{jobs}$/; next unless $jobName =~ /^$conf->{jobs}$/;
# Don't send out "pending" status updates if the build is already finished # Don't send out "pending" status updates if the build is already finished
next if !$finished && $b->finished == 1; next if !$finished && $b->finished == 1;
@ -70,7 +69,6 @@ sub common {
my $owner = $1; my $owner = $1;
my $repo = $2; my $repo = $2;
my $url = "https://api.github.com/repos/$owner/$repo/statuses/$rev"; my $url = "https://api.github.com/repos/$owner/$repo/statuses/$rev";
print STDERR "GithubStatus_Debug POSTing to '", $url, "'\n";
my $req = HTTP::Request->new('POST', $url); my $req = HTTP::Request->new('POST', $url);
$req->header('Content-Type' => 'application/json'); $req->header('Content-Type' => 'application/json');
$req->header('Accept' => 'application/vnd.github.v3+json'); $req->header('Accept' => 'application/vnd.github.v3+json');