danger: fail build on CI for convenience

This commit is contained in:
Hypnosphi 2018-03-13 14:20:03 +03:00
parent d3455ac5a6
commit 9093ba16ee

View File

@ -1,4 +1,4 @@
import { fail, danger } from 'danger';
import { fail as dangerFail, danger } from 'danger';
import { flatten, intersection, isEmpty } from 'lodash';
const pkg = require('./package.json'); // eslint-disable-line import/newline-after-import
@ -12,6 +12,11 @@ const Versions = {
const branchVersion = Versions.PATCH;
const fail = (...args) => {
dangerFail(...args);
process.exit(1);
};
const checkRequiredLabels = labels => {
const forbiddenLabels = flatten([
'do not merge',