Skip to content

Commit 4be9f8f

Browse files
author
dessant
committed
feat: update dependencies
BREAKING CHANGE: probot < 9.2.13 no longer supported.
1 parent de70943 commit 4be9f8f

File tree

5 files changed

+2165
-2073
lines changed

5 files changed

+2165
-2073
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.12.0
1+
10.16.0

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@
1313
"scripts": {
1414
"start": "probot run ./src/index.js",
1515
"watch": "nodemon --exec 'yarn run start'",
16-
"update": "ncu --upgrade --upgradeAll && yarn",
16+
"update": "ncu --upgrade && yarn",
1717
"push": "git push --follow-tags origin master",
18-
"release": "standard-version && yarn run push"
18+
"release": "standard-version"
1919
},
2020
"files": [
2121
"docs",
2222
"src"
2323
],
2424
"dependencies": {
2525
"joi": "^14.3.1",
26-
"probot": "^7.5.0",
26+
"probot": "^9.2.13",
2727
"probot-config": "^1.0.1",
28-
"probot-messages": "^0.1.2",
29-
"probot-scheduler": "probot/scheduler#75bc5dd3fcac5bf6448ce85c63d1e5c2971c11a8",
28+
"probot-messages": "^1.0.1",
29+
"probot-scheduler": "^2.0.0-beta.1",
3030
"uuid": "^3.3.2"
3131
},
3232
"devDependencies": {
33-
"nodemon": "1.18.9",
34-
"npm-check-updates": "^2.15.0",
35-
"prettier": "^1.16.0",
36-
"smee-client": "^1.0.2",
37-
"standard-version": "^4.4.0"
33+
"nodemon": "^1.19.1",
34+
"npm-check-updates": "^3.1.10",
35+
"prettier": "^1.18.2",
36+
"smee-client": "^1.1.0",
37+
"standard-version": "^6.0.1"
3838
},
3939
"engines": {
4040
"node": ">=8.12.0"

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const schema = require('./schema');
88

99
module.exports = async robot => {
1010
const github = await robot.auth();
11-
const appName = (await github.apps.get({})).data.name;
11+
const appName = (await github.apps.getAuthenticated()).data.name;
1212
const scheduler = createScheduler(robot);
1313

1414
robot.on('schedule.repository', async context => {

src/lock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = class Lock {
2323

2424
const results = await this.search(type);
2525
for (const result of results) {
26-
const issue = {...repo, number: result.number};
26+
const issue = {...repo, issue_number: result.number};
2727

2828
if (lockComment) {
2929
this.log.info({issue}, 'Commenting');
@@ -86,7 +86,7 @@ module.exports = class Lock {
8686
}
8787

8888
this.log.info({repo: {owner, repo}}, `Searching ${type}`);
89-
const results = (await this.context.github.search.issues({
89+
const results = (await this.context.github.search.issuesAndPullRequests({
9090
q: query,
9191
sort: 'updated',
9292
order: 'desc',

0 commit comments

Comments
 (0)