diff --git a/src/api.js b/src/api.js index 943b0574..41e03aca 100644 --- a/src/api.js +++ b/src/api.js @@ -1,6 +1,6 @@ const axios = require('axios') let { repo } = require('ci-env') -const { sha, ci } = require('ci-env') +const { sha, ci, platform } = require('ci-env') const { warn } = require('prettycli') const token = require('./token') @@ -14,11 +14,13 @@ if (repo && token) enabled = true else if (ci) { // skip this for a while // TODO: maybe bring it back! - // warn(`github token not found - // + // if (platform === 'github') { + // warn(`github token not found + // You are missing out on some cool features. // Read more here: https://github.com/siddharthkp/bundlesize#2-build-status // `) + // } } debug('api enabled', enabled)