Skip to content

Commit

Permalink
fix: address deprecation from probot 10.15.0
Browse files Browse the repository at this point in the history
`context.github` is now `context.octokit`
https://github.com/probot/probot/releases/tag/v10.15.0
  • Loading branch information
gr2m committed Nov 20, 2020
1 parent efe4d6a commit dc19ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -3,7 +3,7 @@ const mergeArrayByName = require('./lib/mergeArrayByName')
module.exports = ({ app: robot }, _, Settings = require('./lib/settings')) => {
async function syncSettings (context, repo = context.repo()) {
const config = await context.config('settings.yml', {}, { arrayMerge: mergeArrayByName })
return Settings.sync(context.github, repo, config)
return Settings.sync(context.octokit, repo, config)
}

robot.on('push', async context => {
Expand Down

0 comments on commit dc19ae4

Please sign in to comment.