Skip to content

Commit

Permalink
Ensure we end execution at the appropriate time if there are no open …
Browse files Browse the repository at this point in the history
…issues.
  • Loading branch information
bnb committed Aug 21, 2019
1 parent 566eb50 commit f52431a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/good-first-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ cli
const issues = await gfi(input, options)

if (issues.length === 0) {
console.log(chalk.yellow(`\nNo Good First Issues were found for the GitHub organization, repo, or project ${chalk.white(input)}.\n`))
process.exitCode = 0
return console.log(chalk.yellow(`\nNo Good First Issues were found for the GitHub organization, repo, or project ${chalk.white(input)}.\n`))
}

const key = cmd.first ? 0 : Math.floor(Math.random() * Math.floor(issues.length - 1))
Expand Down

0 comments on commit f52431a

Please sign in to comment.