Skip to content

Commit 1501906

Browse files
authored
Add dependabot config to the cookiecutter template (frequenz-floss#44)
Fixes frequenz-floss#7.
2 parents 3c37126 + 82959bc commit 1501906

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
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 %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% if cookiecutter.type == "api" -%}
2-
[submodule "api-common-protos"]
2+
[submodule "submodules/api-common-protos"]
33
path = submodules/api-common-protos
44
url = https://github.com/googleapis/api-common-protos.git
5-
[submodule "frequenz-api-common"]
5+
[submodule "submodules/frequenz-api-common"]
66
path = submodules/frequenz-api-common
77
url = https://github.com/frequenz-floss/frequenz-api-common.git
88
{% endif -%}

0 commit comments

Comments
 (0)