From 283c32adee78443d2b2f204cf081d94fba7f0811 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Mon, 4 Nov 2019 10:08:17 +0000 Subject: [PATCH] OPS: postbuild script --- appcenter-post-build-get-pr-number.js | 2 +- appcenter-post-build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appcenter-post-build-get-pr-number.js b/appcenter-post-build-get-pr-number.js index e27324b4..8e87b553 100755 --- a/appcenter-post-build-get-pr-number.js +++ b/appcenter-post-build-get-pr-number.js @@ -1,6 +1,6 @@ const https = require('https'); -const auth = 'Basic ' + Buffer.from('Overtorment' + ':' + process.env.GITHUB).toString('base64'); +const auth = 'Basic ' + Buffer.from(process.env.GITHUB).toString('base64'); const branch = require('child_process') .execSync('git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3') diff --git a/appcenter-post-build.sh b/appcenter-post-build.sh index d1b1c951..62513d89 100755 --- a/appcenter-post-build.sh +++ b/appcenter-post-build.sh @@ -16,5 +16,5 @@ if [ -f $FILENAME ]; then echo App url: $APPURL PR=`node appcenter-post-build-get-pr-number.js` echo PR: $PR - curl -X POST --data "{\"body\":\"This was a triumph. I'm making a note here: HUGE SUCCESS.\n\n [android] $APPURL\"}" -u "$GITHUB_USERNAME:$GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments" + curl -X POST --data "{\"body\":\"This was a triumph. I'm making a note here: HUGE SUCCESS.\n\n [android] $APPURL\"}" -u "$GITHUB" "https://api.github.com/repos/BlueWallet/BlueWallet/issues/$PR/comments" fi