mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
danger: fail build on CI for convenience
This commit is contained in:
parent
d3455ac5a6
commit
9093ba16ee
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user