Skip to content

Commit 3d2bed4

Browse files
Add some tests for Depandabot multi-ecosystem-groups (SchemaStore#5167)
* Add some tests for Depandabot `multi-ecosystem-groups` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6edf924 commit 3d2bed4

File tree

5 files changed

+224
-2
lines changed

5 files changed

+224
-2
lines changed

src/schemas/json/dependabot-2.0.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,7 @@
12531253
"include": {
12541254
"description": "Specifies that any prefix is followed by a list of the dependencies updated in the commit",
12551255
"type": "string",
1256-
"enum": ["scope"],
1257-
"default": "scope"
1256+
"enum": ["scope"]
12581257
}
12591258
},
12601259
"anyOf": [
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# yaml-language-server: $schema=../../schemas/json/dependabot-2.0.json
2+
version: 2
3+
4+
multi-ecosystem-groups:
5+
infrastructure:
6+
schedule:
7+
interval: weekly
8+
9+
updates:
10+
- package-ecosystem: docker
11+
directory: /
12+
schedule:
13+
interval: daily
14+
patterns:
15+
- nginx
16+
- redis
17+
- postgres
18+
multi-ecosystem-group: infrastructure
19+
20+
- package-ecosystem: terraform
21+
directory: /
22+
schedule:
23+
interval: daily
24+
patterns:
25+
- aws
26+
- terraform-*
27+
multi-ecosystem-group: infrastructure
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# yaml-language-server: $schema=../../schemas/json/dependabot-2.0.json
2+
version: 2
3+
4+
multi-ecosystem-groups:
5+
group-with-prefix:
6+
schedule:
7+
interval: weekly
8+
commit-message:
9+
prefix: deps
10+
11+
group-with-prefix-development:
12+
schedule:
13+
interval: weekly
14+
commit-message:
15+
prefix-development: dev-deps
16+
17+
group-with-include-only:
18+
schedule:
19+
interval: weekly
20+
commit-message:
21+
include: scope
22+
23+
group-with-prefix-and-include:
24+
schedule:
25+
interval: weekly
26+
commit-message:
27+
prefix: update
28+
include: scope
29+
30+
updates:
31+
- package-ecosystem: npm
32+
directory: /1
33+
schedule:
34+
interval: daily
35+
patterns:
36+
- '*'
37+
multi-ecosystem-group: group-with-prefix
38+
39+
- package-ecosystem: pip
40+
directory: /2
41+
schedule:
42+
interval: daily
43+
patterns:
44+
- '*'
45+
multi-ecosystem-group: group-with-prefix-development
46+
47+
- package-ecosystem: bundler
48+
directory: /3
49+
schedule:
50+
interval: daily
51+
patterns:
52+
- '*'
53+
multi-ecosystem-group: group-with-include-only
54+
55+
- package-ecosystem: docker
56+
directory: /4
57+
schedule:
58+
interval: daily
59+
patterns:
60+
- '*'
61+
multi-ecosystem-group: group-with-prefix-and-include
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# yaml-language-server: $schema=../../schemas/json/dependabot-2.0.json
2+
version: 2
3+
4+
multi-ecosystem-groups:
5+
infrastructure:
6+
schedule:
7+
interval: weekly
8+
day: monday
9+
time: '09:00'
10+
timezone: America/New_York
11+
assignees:
12+
- platform-team
13+
labels:
14+
- infrastructure
15+
- dependencies
16+
milestone: 10
17+
target-branch: develop
18+
commit-message:
19+
prefix: infra
20+
include: scope
21+
pull-request-branch-name:
22+
separator: '-'
23+
24+
full-stack:
25+
schedule:
26+
interval: daily
27+
assignees:
28+
- full-stack-team
29+
labels:
30+
- full-stack
31+
32+
updates:
33+
- package-ecosystem: docker
34+
directory: /
35+
schedule:
36+
interval: daily
37+
patterns:
38+
- '*'
39+
assignees:
40+
- docker-admin
41+
labels:
42+
- docker
43+
multi-ecosystem-group: infrastructure
44+
45+
- package-ecosystem: npm
46+
directory: /frontend
47+
schedule:
48+
interval: daily
49+
patterns:
50+
- react
51+
- lodash
52+
- '@types/*'
53+
labels:
54+
- frontend
55+
multi-ecosystem-group: full-stack
56+
57+
- package-ecosystem: bundler
58+
directory: /backend
59+
schedule:
60+
interval: daily
61+
patterns:
62+
- rails
63+
- pg
64+
- sidekiq
65+
assignees:
66+
- backend-dev
67+
multi-ecosystem-group: full-stack
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# yaml-language-server: $schema=../../schemas/json/dependabot-2.0.json
2+
version: 2
3+
4+
multi-ecosystem-groups:
5+
daily-group:
6+
schedule:
7+
interval: daily
8+
9+
weekly-group:
10+
schedule:
11+
interval: weekly
12+
day: friday
13+
14+
monthly-group:
15+
schedule:
16+
interval: monthly
17+
18+
cron-group:
19+
schedule:
20+
interval: cron
21+
cronjob: '0 0 * * 0'
22+
23+
time-and-timezone:
24+
schedule:
25+
interval: daily
26+
time: '14:30'
27+
timezone: Europe/London
28+
29+
updates:
30+
- package-ecosystem: npm
31+
directory: /1
32+
schedule:
33+
interval: daily
34+
patterns:
35+
- '*'
36+
multi-ecosystem-group: daily-group
37+
38+
- package-ecosystem: pip
39+
directory: /2
40+
schedule:
41+
interval: daily
42+
patterns:
43+
- '*'
44+
multi-ecosystem-group: weekly-group
45+
46+
- package-ecosystem: bundler
47+
directory: /3
48+
schedule:
49+
interval: daily
50+
patterns:
51+
- '*'
52+
multi-ecosystem-group: monthly-group
53+
54+
- package-ecosystem: docker
55+
directory: /4
56+
schedule:
57+
interval: daily
58+
patterns:
59+
- '*'
60+
multi-ecosystem-group: cron-group
61+
62+
- package-ecosystem: terraform
63+
directory: /5
64+
schedule:
65+
interval: daily
66+
patterns:
67+
- '*'
68+
multi-ecosystem-group: time-and-timezone

0 commit comments

Comments
 (0)