Skip to content

Commit

Permalink
Fix the comment code
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmJSD committed Sep 12, 2019
1 parent da1f746 commit 6700b70
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build/createGithubComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ fetch(
body: comment,
}),
headers: {
"Content-Type": "application/json",
Accept: "application/vnd.github.v3+json",
Authorization: `Basic JakeMakesStuff:${(new Buffer(process.env.GITHUB_ACCESS_TOKEN)).toString("base64")}`,
Authorization: `Basic ${Buffer.from(`JakeMakesStuff:${process.env.GITHUB_ACCESS_TOKEN}`).toString("base64")}`,
}
},
).then(x => {
if (!x.ok) throw x
}).catch(e => { throw e })
).then(async x => {
if (!x.ok) { console.log(await x.json()); process.exit(1); }
}).catch(async e => { console.log(await e.json()); process.exit(1); })

1 comment on commit 6700b70

@IAmJSD
Copy link
Contributor Author

@IAmJSD IAmJSD commented on 6700b70 Sep 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been deployed to DigitalOcean Spaces for easy viewing. (DNS Tool, SPF Explainer)

Please sign in to comment.