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 13
13
"scripts" : {
14
14
"start" : " probot run ./src/index.js" ,
15
15
"watch" : " nodemon --exec 'yarn run start'" ,
16
- "update" : " ncu --upgrade --upgradeAll && yarn" ,
16
+ "update" : " ncu --upgrade && yarn" ,
17
17
"push" : " git push --follow-tags origin master" ,
18
- "release" : " standard-version && yarn run push "
18
+ "release" : " standard-version"
19
19
},
20
20
"files" : [
21
21
" docs" ,
22
22
" src"
23
23
],
24
24
"dependencies" : {
25
25
"joi" : " ^14.3.1" ,
26
- "probot" : " ^7.5.0 " ,
26
+ "probot" : " ^9.2.13 " ,
27
27
"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 " ,
30
30
"uuid" : " ^3.3.2"
31
31
},
32
32
"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 "
38
38
},
39
39
"engines" : {
40
40
"node" : " >=8.12.0"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const schema = require('./schema');
8
8
9
9
module . exports = async robot => {
10
10
const github = await robot . auth ( ) ;
11
- const appName = ( await github . apps . get ( { } ) ) . data . name ;
11
+ const appName = ( await github . apps . getAuthenticated ( ) ) . data . name ;
12
12
const scheduler = createScheduler ( robot ) ;
13
13
14
14
robot . on ( 'schedule.repository' , async context => {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = class Lock {
23
23
24
24
const results = await this . search ( type ) ;
25
25
for ( const result of results ) {
26
- const issue = { ...repo , number : result . number } ;
26
+ const issue = { ...repo , issue_number : result . number } ;
27
27
28
28
if ( lockComment ) {
29
29
this . log . info ( { issue} , 'Commenting' ) ;
@@ -86,7 +86,7 @@ module.exports = class Lock {
86
86
}
87
87
88
88
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 ( {
90
90
q : query ,
91
91
sort : 'updated' ,
92
92
order : 'desc' ,
You can’t perform that action at this time.
0 commit comments