Skip to content

Commit 82959bc

Browse files
committed
Add dependabot config to the cookiecutter template
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent b5d3879 commit 82959bc

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
time: "07:00"
8+
labels:
9+
- "part:tooling"
10+
- "type:tech-debt"
11+
# Default versioning-strategy. For other versioning-strategy see:
12+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#versioning-strategy
13+
versioning-strategy: auto
14+
# Allow up to 10 open pull requests for updates to dependency versions
15+
open-pull-requests-limit: 10
16+
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"
21+
time: "06:00"
22+
labels:
23+
- "part:tooling"
24+
- "type:tech-debt"
25+
{%- if cookiecutter.type == "api" %}
26+
27+
- package-ecosystem: "gitsubmodule"
28+
directory: "/"
29+
# We only want to track updates on google api common because the
30+
# dependencies to other submodules are also indirectly tracked by the
31+
# python dependencies (and because the gitsubmodule dependency tracker
32+
# doesn't support updating only to tags or following semver, see
33+
# https://github.com/dependabot/dependabot-core/issues/1639 for details)
34+
# We do so by explicitly ignoring the other submodules, as `ignore` all
35+
# + `allow` one doesn't seem to work.
36+
ignore:
37+
- dependency-name: "submodules/frequenz-api-common"
38+
# The google api common repo changes very seldom, so there is no need to
39+
# check very often.
40+
schedule:
41+
interval: "monthly"
42+
time: "06:00"
43+
labels:
44+
- "part:tooling"
45+
- "type:tech-debt"
46+
{%- endif %}

0 commit comments

Comments
 (0)