Skip to content

Commit

Permalink
fix: compatibility with Probot v11 (#23)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan L. Agosto Cruz <[email protected]>
  • Loading branch information
jonathanagosto and Jonathan L. Agosto Cruz authored Jan 11, 2021
1 parent 7177e4d commit 6b89173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const regex = /\n\n<!-- probot = (.*) -->/

module.exports = (context, issue = null) => {
const github = context.github
const github = context.octokit || context.github
const prefix = context.payload.installation.id

if (!issue) issue = context.issue()
Expand Down Expand Up @@ -43,8 +43,8 @@ module.exports = (context, issue = null) => {

body = `${body}\n\n<!-- probot = ${JSON.stringify(data)} -->`

const {owner, repo, issue_number} = issue
return github.issues.update({owner, repo, issue_number, body})
const { owner, repo, issue_number } = issue
return github.issues.update({ owner, repo, issue_number, body })
}
}
}

0 comments on commit 6b89173

Please sign in to comment.