Skip to content

Commit 4491986

Browse files
Add default values for repository, package, and image schema fields
1 parent 09b4e49 commit 4491986

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

resources/schema.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,34 @@
1212
"repository": {
1313
"type": "object",
1414
"additionalProperties": false,
15+
"default": {
16+
"commit": {
17+
"branch": "preview/banner-{random}",
18+
"title": "docs(preview): Update preview",
19+
"author": {
20+
"name": "github-actions",
21+
"email": "github-actions@github.com"
22+
}
23+
},
24+
"pullRequest": {
25+
"title": "Update preview",
26+
"labels": [
27+
"preview"
28+
]
29+
}
30+
},
1531
"properties": {
1632
"commit": {
1733
"type": "object",
1834
"additionalProperties": false,
35+
"default": {
36+
"branch": "preview/banner-{random}",
37+
"title": "docs(preview): Update preview",
38+
"author": {
39+
"name": "github-actions",
40+
"email": "github-actions@github.com"
41+
}
42+
},
1943
"properties": {
2044
"branch": {
2145
"type": "string",
@@ -101,6 +125,11 @@
101125
"package": {
102126
"type": "object",
103127
"additionalProperties": false,
128+
"default": {
129+
"manager": "auto",
130+
"global": false,
131+
"dev": false
132+
},
104133
"properties": {
105134
"manager": {
106135
"description": "Package manager name. Reserved values: composer | npm | yarn | auto | none",
@@ -140,6 +169,16 @@
140169
"image": {
141170
"type": "object",
142171
"additionalProperties": false,
172+
"default": {
173+
"url": "https://banners.beyondco.de/{title}.png",
174+
"parameters": {
175+
"pattern": "topography",
176+
"style": "style_2",
177+
"fontSize": "100px",
178+
"md": "1",
179+
"showWatermark": "1"
180+
}
181+
},
143182
"properties": {
144183
"url": {
145184
"type": "string",

0 commit comments

Comments
 (0)