Skip to content

Commit

Permalink
👍 Add early return
Browse files Browse the repository at this point in the history
  • Loading branch information
re-fort committed Oct 1, 2017
1 parent 06403a7 commit 0047aac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function removeHeadFeeder() {

async function after(item, hash, shortHash) {
const { data: pullRequest } = await github.createPullRequest(remote, { title: item.title, body: `Cherry picked from ${item.link}`, branch: shortHash })
if (!pullRequest) return
Utility.log('S', `Created new pull request: ${pullRequest.html_url}`)
await github.assignReviewers(remote, { number: pullRequest.number, reviewers: ['re-fort', 'kazupon'] })
Utility.log('S', 'Assigned reviewers')
Expand Down

0 comments on commit 0047aac

Please sign in to comment.