Skip to content

Commit

Permalink
Merged by Peril
Browse files Browse the repository at this point in the history
Lets --json or --js not require a dangerfile
  • Loading branch information
peril-staging[bot] committed Feb 3, 2019
2 parents 9c9d391 + c1e524a commit 854655d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,8 @@

<!-- Your comment below this -->

- `danger pr` with `--json` or --js` now don't require a Dangerfile to be present - [@orta][]

# 7.0.5

- Remove dead links to example danger files. - [@stevemoser][]
Expand Down
2 changes: 1 addition & 1 deletion source/commands/danger-pr.ts
Expand Up @@ -79,7 +79,7 @@ if (program.args.length === 0) {

console.log(`Starting Danger PR on ${pr.repo}#${pr.pullRequestNumber}`)

if (customProcess || validateDangerfileExists(dangerfilePath(program))) {
if (customProcess || app.js || app.json || validateDangerfileExists(dangerfilePath(program))) {
if (!customProcess) {
d(`executing dangerfile at ${dangerfilePath(program)}`)
}
Expand Down

0 comments on commit 854655d

Please sign in to comment.