Skip to content

Commit d524708

Browse files
committed
fix: fix dependabot generator
1 parent ba97cb6 commit d524708

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

lib/package.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ export default class Package {
14281428
"directories": [ ...directories ].sort(),
14291429
"schedule": {
14301430
"interval": this.cliConfig.meta.dependabot.npm.interval,
1431-
"day": this.cliConfig.meta.dependabot.npm.day,
1431+
"day": this.cliConfig.meta.dependabot.npm.day.toLowerCase(),
14321432
"time": new Locale().formatDate( Temporal.PlainTime.from( this.cliConfig.meta.dependabot.npm.time ), "timeStyle:short" ),
14331433
"timezone": this.cliConfig.meta.dependabot.npm.timezone,
14341434
},
@@ -1451,7 +1451,7 @@ export default class Package {
14511451
"directories": [ "/" ],
14521452
"schedule": {
14531453
"interval": this.cliConfig.meta.dependabot.docker.interval,
1454-
"day": this.cliConfig.meta.dependabot.docker.day,
1454+
"day": this.cliConfig.meta.dependabot.docker.day.toLowerCase(),
14551455
"time": new Locale().formatDate( Temporal.PlainTime.from( this.cliConfig.meta.dependabot.docker.time ), "timeStyle:short" ),
14561456
"timezone": this.cliConfig.meta.dependabot.docker.timezone,
14571457
},
@@ -1492,7 +1492,7 @@ export default class Package {
14921492
"directories": [ ...directories ].sort(),
14931493
"schedule": {
14941494
"interval": this.cliConfig.meta.dependabot[ "github-actions" ].interval,
1495-
"day": this.cliConfig.meta.dependabot[ "github-actions" ].day,
1495+
"day": this.cliConfig.meta.dependabot[ "github-actions" ].day.toLowerCase(),
14961496
"time": new Locale().formatDate( Temporal.PlainTime.from( this.cliConfig.meta.dependabot[ "github-actions" ].time ), "timeStyle:short" ),
14971497
"timezone": this.cliConfig.meta.dependabot[ "github-actions" ].timezone,
14981498
},

resources/cli.config.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,21 @@ meta:
88
dependabot:
99
npm:
1010
enabled: true
11-
interval: weekly
12-
day: Monday
13-
time: 00:00
11+
interval: cron
12+
cronjob: 0 0 * * 1
1413
timezone: UTC
1514
open-pull-requests-limit: 5
1615
docker:
1716
enabled: true
18-
interval: daily
19-
day: Monday
20-
time: 00:00
17+
interval: cron
18+
cronjob: 0 0 * * *
2119
timezone: UTC
2220
open-pull-requests-limit: 5
2321
github-actions:
2422
enabled: true
2523
actionsEnabled: false
26-
interval: daily
27-
day: Monday
28-
time: 00:00
24+
interval: cron
25+
cronjob: 0 0 * * *
2926
timezone: UTC
3027
open-pull-requests-limit: 5
3128

resources/schemas/cli.config.schema.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ properties:
1818
type: object
1919
properties:
2020
enabled: { type: boolean }
21-
interval: { enum: [daily, weekly, monthly] }
21+
interval: { enum: [cron, daily, weekly, monthly, quarterly, semiannually, yearly] }
22+
cronjob: { type: string, format: cron }
2223
day: { type: string, format: weekday }
2324
time: { type: string, format: time }
2425
timezone: { type: string, format: timezone }
@@ -30,7 +31,8 @@ properties:
3031
type: object
3132
properties:
3233
enabled: { type: boolean }
33-
interval: { enum: [daily, weekly, monthly] }
34+
interval: { enum: [cron, daily, weekly, monthly, quarterly, semiannually, yearly] }
35+
cronjob: { type: string, format: cron }
3436
day: { type: string, format: weekday }
3537
time: { type: string, format: time }
3638
timezone: { type: string, format: timezone }
@@ -43,7 +45,8 @@ properties:
4345
properties:
4446
enabled: { type: boolean }
4547
actionsEnabled: { type: boolean }
46-
interval: { enum: [daily, weekly, monthly] }
48+
interval: { enum: [cron, daily, weekly, monthly, quarterly, semiannually, yearly] }
49+
cronjob: { type: string, format: cron }
4750
day: { type: string, format: weekday }
4851
time: { type: string, format: time }
4952
timezone: { type: string, format: timezone }

0 commit comments

Comments
 (0)