Skip to content

Commit

Permalink
danger: fail build on CI for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Mar 13, 2018
1 parent d3455ac commit 9093ba1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dangerfile.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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',
Expand Down

0 comments on commit 9093ba1

Please sign in to comment.