/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v16.9.0
scripts/tasks/danger.js
32 строки
835 B
Héctor Ramos
Switch to @sizebot token (#13622)
11 сен 2018, 23:06
11 сен 2018, 23:06
dde0645
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const path = require('path'); const spawn = require('child_process').spawn; const extension = process.platform === 'win32' ? '.cmd' : ''; // sizebot public_repo token (this is publicly visible on purpose) const token = '0a7d5c3cad9a6dbec2d9' + '9a5222cf49062a4c1ef7'; spawn(path.join('node_modules', '.bin', 'danger-ci' + extension), [], { // Allow colors to pass through stdio: 'inherit', env: { ...process.env, DANGER_GITHUB_API_TOKEN: token, }, }).on('close', function(code) { if (code !== 0) { console.error('Danger failed'); } else { console.log('Danger passed'); } process.exit(code); });