Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
It'd help if I didn't forget the authentication code
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleyChatha committed Mar 9, 2020
1 parent 4de3052 commit 421c502
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/aim/deploy/triggers.d
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ final class GithubAimDeployTrigger : IAimDeployTrigger
{
import vibe.http.client;

Shell.verboseLogfln("Updating deployment status");
auto response = requestHTTP(
"https://api.github.com/repos/"~this._githubConf.value.repoOwner
~"/"~this._githubConf.value.repoName
Expand All @@ -140,6 +141,7 @@ final class GithubAimDeployTrigger : IAimDeployTrigger
{
req.method = HTTPMethod.POST;
req.headers["Accept"] = "application/vnd.github.flash-preview+json";
req.headers["Authorization"] = "bearer "~this._githubConf.value.deployToken;
req.writeJsonBody(
[
"state": success ? "success" : "failure",
Expand Down

0 comments on commit 421c502

Please sign in to comment.