File tree Expand file tree Collapse file tree 5 files changed +2165
-2073
lines changed
Expand file tree Collapse file tree 5 files changed +2165
-2073
lines changed Original file line number Diff line number Diff line change 1- 8.12 .0
1+ 10.16 .0
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const schema = require('./schema');
88
99module . 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 => {
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments