This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
830bb6f
commit 11dd0e5
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { fail, warn } from 'danger' | ||
|
||
const shell = require('shelljs') | ||
const command = process.env.COMMAND | ||
const child = shell.exec(command) | ||
|
||
if (child.stdout !== '') { | ||
warn(child.stdout) | ||
} | ||
if (child.stderr !== '') { | ||
fail(child.stderr) | ||
} |