Skip to content

Commit 0a3f09e

Browse files
authored
chore: configure dependabot to use fix commit type when updating depedencies (#411)
Today, release-please doesn't trigger a release for commits with chore: commit type. We'd like to cut a release when updating dependencies that impacts the packaged artifact, so we'll instruct dependabot to use fix commit type instead of chore(deps) it uses today.
1 parent 43e63f6 commit 0a3f09e

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/renovate.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["group:allNonMajor", "schedule:monthly"],
3+
"extends": [
4+
"group:allNonMajor",
5+
"schedule:monthly"
6+
],
7+
"semanticCommits": "enabled",
48
"packageRules": [
59
{
610
"description": "Create a PR whenever there is a new major version",
7-
"matchUpdateTypes": [
8-
"major"
9-
]
11+
"matchUpdateTypes": ["major"]
12+
},
13+
{
14+
"description": "Use releasable commit type for runtime dependency updates",
15+
"matchManagers": ["pep621", "pip_setup"],
16+
"matchDepTypes": ["dependencies"],
17+
"semanticCommitType": "fix",
18+
"semanticCommitScope": "deps"
19+
},
20+
{
21+
"description": "Keep development-only dependency updates non-releasable",
22+
"matchManagers": ["pep621"],
23+
"matchDepTypes": ["dependency-groups"],
24+
"semanticCommitType": "chore",
25+
"semanticCommitScope": "deps"
1026
}
1127
],
12-
"ignorePaths": [
13-
"examples/**"
14-
]
28+
"ignorePaths": ["examples/**"]
1529
}

0 commit comments

Comments
 (0)