forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependabot.json
226 lines (226 loc) · 8.42 KB
/
dependabot.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"title": "Dependabot configuration file",
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {},
"type": "object",
"required": ["version", "update_configs"],
"properties": {
"version": {
"type": "integer",
"default": 1,
"examples": [1],
"minimum": 1.0,
"maximum": 1.0
},
"update_configs": {
"type": "array",
"items": {
"type": "object",
"required": ["package_manager", "directory", "update_schedule"],
"properties": {
"package_manager": {
"type": "string",
"enum": [
"javascript",
"ruby:bundler",
"php:composer",
"python",
"go:modules",
"go:dep",
"java:maven",
"java:gradle",
"dotnet:nuget",
"rust:cargo",
"elixir:hex",
"docker",
"terraform",
"submodules",
"elm",
"github_actions"
],
"description": "What package manager to use",
"examples": ["ruby:bundler"]
},
"directory": {
"type": "string",
"description": "Where to look for package manifests",
"examples": ["/app"]
},
"update_schedule": {
"type": "string",
"enum": ["live", "daily", "weekly", "monthly"],
"description": "How often to check for updates",
"examples": ["live"]
},
"target_branch": {
"type": "string",
"description": "Branch to create pull requests against. By default your repository's default branch is used.",
"items": {
"type": "string",
"description": "branchname",
"examples": ["develop"]
}
},
"default_reviewers": {
"type": "array",
"description": "Reviewers to set on update pull requests.",
"items": {
"type": "string",
"description": "reviewer github username",
"examples": ["github-username"]
}
},
"default_assignees": {
"type": "array",
"description": "Assignees to set on update pull requests.",
"items": {
"type": "string",
"description": "assignee github username",
"examples": ["github_username_1"]
}
},
"default_labels": {
"type": "array",
"description": "Labels to set on update pull requests. By default 'dependencies' is used.",
"items": {
"type": "string",
"examples": ["label-name"]
}
},
"default_milestone": {
"type": "integer",
"description": "Milestone to set on dependency update pull requests. Specified using the milestone number - you can find this in the URL when looking at details of a milestone in GitHub."
},
"allowed_updates": {
"type": "array",
"description": "Limit which updates are allowed. By default all direct/top-level dependencies are kept up to date (indirect/sub-dependencies are only updated if they include security fixes).",
"items": {
"type": "object",
"minItems": 1,
"properties": {
"match": {
"type": "object",
"properties": {
"dependency_name": {
"type": "string",
"description": "matching on dependency name ",
"examples": ["react*"]
},
"dependency_type": {
"type": "string",
"description": "only allow certain updates",
"examples": [
"development",
"production",
"direct",
"indirect",
"all"
]
},
"update_type": {
"type": "string",
"enum": ["security", "all"],
"description": "which updates to do",
"default": "security",
"examples": ["all"]
}
}
}
}
}
},
"ignored_updates": {
"type": "array",
"description": "By default no updates are ignored. The version_requirement specifies the versions to ignore. The range format is specific to the package manager (e.g., ^1.0.0 for JS, or ~> 2.0 for Ruby).",
"items": {
"type": "object",
"minItems": 1,
"properties": {
"match": {
"type": "object",
"properties": {
"dependency_name": {
"type": "string",
"description": "matching on dependency name ",
"examples": ["aws*"]
},
"version_requirement": {
"type": "string",
"description": "The version_requirement specifies the versions to ignore. The range format is specific to the package manager (e.g., ^1.0.0 for JS, or ~> 2.0 for Ruby).",
"examples": ["4.x"]
}
}
}
}
}
},
"automerged_updates": {
"type": "array",
"description": "Automerged updates must be enabled at the account level (from account settings in your dashboard) before they can be configured on a project. Specify which update pull requests should be merged automatically. By default no updates are automerged. For all of the options below Dependabot will wait until all your status checks pass before merging. You can also set working hours for automerging in your dashboard account settings.",
"items": {
"type": "object",
"minItems": 1,
"properties": {
"match": {
"type": "object",
"properties": {
"dependency_name": {
"type": "string",
"description": "matching on dependency name ",
"examples": ["aws*"]
},
"dependency_type": {
"type": "string",
"enum": ["development", "production", "all"],
"examples": ["production*"]
},
"update_type": {
"type": "string",
"enum": [
"security:patch",
"semver:patch",
"semver:minor",
"in_range",
"all"
],
"examples": ["semver:patch"]
}
}
}
}
}
},
"version_requirement_updates": {
"type": "string",
"enum": [
"off",
"auto",
"widen_ranges",
"increase_versions",
"increase_versions_if_necessary"
],
"description": "Specify how Dependabot should update your package manifest (e.g. package.json, Gemfile etc), as opposed to your lockfile. By default, version requirements are increased if it's an app and the range widened if it's a library.",
"examples": ["widen_ranges"]
},
"commit_message": {
"type": "object",
"description": "Preferences for the format of Dependabot's commit messages and pull request titles. By default, Dependabot will attempt to detect your commit message preferences and use those.",
"properties": {
"prefix": {
"type": "string",
"examples": ["chore"]
},
"prefix_development": {
"type": "string",
"examples": ["fix"]
},
"include_scope": {
"type": "boolean"
}
}
}
}
}
}
}
}