Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: probot < 9.2.13 no longer supported.
  • Loading branch information
dessant committed Jun 9, 2019
1 parent de70943 commit 4be9f8f
Show file tree
Hide file tree
Showing 5 changed files with 2,165 additions and 2,073 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.12.0
10.16.0
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@
"scripts": {
"start": "probot run ./src/index.js",
"watch": "nodemon --exec 'yarn run start'",
"update": "ncu --upgrade --upgradeAll && yarn",
"update": "ncu --upgrade && yarn",
"push": "git push --follow-tags origin master",
"release": "standard-version && yarn run push"
"release": "standard-version"
},
"files": [
"docs",
"src"
],
"dependencies": {
"joi": "^14.3.1",
"probot": "^7.5.0",
"probot": "^9.2.13",
"probot-config": "^1.0.1",
"probot-messages": "^0.1.2",
"probot-scheduler": "probot/scheduler#75bc5dd3fcac5bf6448ce85c63d1e5c2971c11a8",
"probot-messages": "^1.0.1",
"probot-scheduler": "^2.0.0-beta.1",
"uuid": "^3.3.2"
},
"devDependencies": {
"nodemon": "1.18.9",
"npm-check-updates": "^2.15.0",
"prettier": "^1.16.0",
"smee-client": "^1.0.2",
"standard-version": "^4.4.0"
"nodemon": "^1.19.1",
"npm-check-updates": "^3.1.10",
"prettier": "^1.18.2",
"smee-client": "^1.1.0",
"standard-version": "^6.0.1"
},
"engines": {
"node": ">=8.12.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const schema = require('./schema');

module.exports = async robot => {
const github = await robot.auth();
const appName = (await github.apps.get({})).data.name;
const appName = (await github.apps.getAuthenticated()).data.name;
const scheduler = createScheduler(robot);

robot.on('schedule.repository', async context => {
Expand Down
4 changes: 2 additions & 2 deletions src/lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = class Lock {

const results = await this.search(type);
for (const result of results) {
const issue = {...repo, number: result.number};
const issue = {...repo, issue_number: result.number};

if (lockComment) {
this.log.info({issue}, 'Commenting');
Expand Down Expand Up @@ -86,7 +86,7 @@ module.exports = class Lock {
}

this.log.info({repo: {owner, repo}}, `Searching ${type}`);
const results = (await this.context.github.search.issues({
const results = (await this.context.github.search.issuesAndPullRequests({
q: query,
sort: 'updated',
order: 'desc',
Expand Down
Loading

0 comments on commit 4be9f8f

Please sign in to comment.