Github status API: Pull authorization from github_authorization by default
[?]
May 24, 2017, 12:53 PM
5K2OOGOQF3PJEWDVPV2PCRTXUJSELQJMEBZWEQV2SHPTN5LH7E5QCDependencies
- [2]
NSRWW6LCAdd a plugin to interact with the github status API. - [3]
WIM6VQOHGithubStatus: Include the full job name and build ID in the context.
Change contents
- replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 57
my $req = HTTP::Request->new('POST', "https://api.github.com/repos/$1/$2/statuses/$rev");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
$req->header('Authorization' => $conf->{authorization});$req->header('Authorization' => ($self->{config}->{github_authorization}->{$owner} // $conf->{authorization}));