File tree 5 files changed +22
-1
lines changed
5 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ lockComment: >
54
54
55
55
# pulls:
56
56
# daysUntilLock: 30
57
+
58
+ # Repository to extend settings from
59
+ # _extends: repo
57
60
```
58
61
59
62
## How are issues and pull requests determined to be inactive?
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ lockComment: >
41
41
42
42
# pulls:
43
43
# daysUntilLock: 30
44
+
45
+ # Repository to extend settings from
46
+ # _extends: repo
44
47
```
45
48
46
49
## Supporting the Project
Original file line number Diff line number Diff line change 24
24
"dependencies" : {
25
25
"joi" : " ^13.3.0" ,
26
26
"probot" : " ^6.2.0" ,
27
+ "probot-config" : " ^0.1.0" ,
27
28
"probot-scheduler" : " ^1.1.0" ,
28
29
"uuid" : " ^3.2.1"
29
30
},
Original file line number Diff line number Diff line change 1
1
const uuidV4 = require ( 'uuid/v4' ) ;
2
2
const createScheduler = require ( 'probot-scheduler' ) ;
3
+ const getMergedConfig = require ( 'probot-config' ) ;
3
4
4
5
const App = require ( './lock' ) ;
5
6
const schema = require ( './schema' ) ;
@@ -27,7 +28,7 @@ module.exports = robot => {
27
28
const configFile = 'lock.yml' ;
28
29
const repo = context . repo ( ) ;
29
30
try {
30
- const repoConfig = await context . config ( configFile ) ;
31
+ const repoConfig = await getMergedConfig ( context , configFile ) ;
31
32
if ( ! repoConfig ) {
32
33
logger . warn ( { repo, configFile} , 'Missing config' ) ;
33
34
repoConfig = { perform : false } ;
Original file line number Diff line number Diff line change @@ -2006,6 +2006,13 @@ joi@^13.3.0:
2006
2006
isemail "3.x.x"
2007
2007
topo "3.x.x"
2008
2008
2009
+ js-yaml@^3.10.0 :
2010
+ version "3.12.0"
2011
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
2012
+ dependencies :
2013
+ argparse "^1.0.7"
2014
+ esprima "^4.0.0"
2015
+
2009
2016
js-yaml@^3.6.1 :
2010
2017
version "3.11.0"
2011
2018
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
@@ -3061,6 +3068,12 @@ prepend-http@^1.0.1:
3061
3068
version "1.0.4"
3062
3069
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
3063
3070
3071
+ probot-config@^0.1.0 :
3072
+ version "0.1.0"
3073
+ resolved "https://registry.yarnpkg.com/probot-config/-/probot-config-0.1.0.tgz#b6ef11ccc468e7f28e06deb68b34e093b7c7e88e"
3074
+ dependencies :
3075
+ js-yaml "^3.10.0"
3076
+
3064
3077
probot-scheduler@^1.1.0 :
3065
3078
version "1.1.0"
3066
3079
resolved "https://registry.yarnpkg.com/probot-scheduler/-/probot-scheduler-1.1.0.tgz#eda193fd7faaf9a193a8b362903d78741dcda9b7"
You can’t perform that action at this time.
0 commit comments