summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-10-07 18:00:00 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-10-07 18:00:00 -0700
commit369468f3619a93136f1ba2490b5308930f3c4ee2 (patch)
tree9747d84262a618d82d8ea6659684e590a38b01ac
parentccf1dcaf8db3a907f2cbbe7f2704ff3f315129e1 (diff)
downloadqtlocation-mapboxgl-369468f3619a93136f1ba2490b5308930f3c4ee2.tar.gz
[ios] debug: change ref to master
-rwxr-xr-xscripts/check_binary_size.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/check_binary_size.js b/scripts/check_binary_size.js
index 24e74d7022..6483fcfb04 100755
--- a/scripts/check_binary_size.js
+++ b/scripts/check_binary_size.js
@@ -38,6 +38,7 @@ github.authenticate({type: 'app', token});
function getPriorSize() {
const mergeBase = process.env['CIRCLE_MERGE_BASE'];
+
if (!mergeBase) {
console.log('No merge base available.');
return Promise.resolve(null);
@@ -46,14 +47,11 @@ function getPriorSize() {
return github.checks.listForRef({
owner: 'mapbox',
repo: 'mapbox-gl-native',
- ref: mergeBase
+ ref: 'master'
}).then(({data}) => {
const run = data.check_runs.find(run => run.name === name);
if (!run) {
console.log('No matching check found.');
- console.log('BROKEN')
- console.log(data.JSON.stringify())
- console.log('BROKEN');
return Promise.resolve(null);
}
return +run.output.summary.match(/`.*` is (\d+) bytes/)[1];