How to Set Semantic Commit Messages for Dependency Updates
You can make every dependency update follow Conventional Commits: Dependabot uses commit-message.prefix and Renovate uses semanticCommits with a configurable type and scope.
Semantic commits like chore(deps): bump lodash to 4.17.21 keep changelogs and release tooling tidy. Dependabot configures this with a commit-message block; Renovate configures it with semanticCommits and semanticCommitType/semanticCommitScope.
Dependabot
.github/dependabot.yml
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore"
prefix-development: "chore(dev)"
include: "scope"Renovate
renovate.json
{
"extends": ["config:recommended"],
"semanticCommits": "enabled",
"semanticCommitType": "chore",
"semanticCommitScope": "deps"
}Gotchas
- Dependabot
include: "scope"appends the dependency name in the commit scope, for examplechore(deps). - If your release automation infers versions from commit types, keep dependency bumps as
choreso they do not trigger releases unexpectedly. - Renovate
semanticCommitsaccepts"enabled"or"disabled"as strings, not booleans.
Related guides
How to Assign Reviewers to Dependency Update PRsRoute dependency update PRs to the right people with reviewers and assignees in Dependabot, or reviewers and…
How to Choose Between Renovate and DependabotCompare Renovate and Dependabot honestly on setup, grouping, automerge, scheduling, and ecosystem support so…