Github status API: Pull authorization from github_authorization by default

[?]
May 24, 2017, 12:53 PM
5K2OOGOQF3PJEWDVPV2PCRTXUJSELQJMEBZWEQV2SHPTN5LH7E5QC

Dependencies

  • [2] NSRWW6LC Add a plugin to interact with the github status API.
  • [3] WIM6VQOH GithubStatus: Include the full job name and build ID in the context.

Change contents

  • replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 57
    [2.2132][2.2132:2242]()
    my $req = HTTP::Request->new('POST', "https://api.github.com/repos/$1/$2/statuses/$rev");
    [2.2132]
    [2.2242]
    my $owner = $1;
    my $repo = $2;
    my $req = HTTP::Request->new('POST', "https://api.github.com/repos/$owner/$repo/statuses/$rev");
  • replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 62
    [2.2394][2.2394:2471]()
    $req->header('Authorization' => $conf->{authorization});
    [2.2394]
    [2.2471]
    $req->header('Authorization' => ($self->{config}->{github_authorization}->{$owner} // $conf->{authorization}));