Skip to content

Commit dcb4f2a

Browse files
authored
fix(dependabot): Follow Conventional Commits (#312)
fix(dependabot): Follow Conventional Commits
1 parent 4efe7d2 commit dcb4f2a

2 files changed

Lines changed: 82 additions & 33 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
id: TASK-8
3+
title: Fix Dependabot commit messages to follow Conventional Commits
4+
status: Done
5+
assignee:
6+
- piotrzajac
7+
- claude
8+
created_date: '2026-04-12'
9+
updated_date: '2026-04-12'
10+
labels:
11+
- ci-cd
12+
- fix
13+
dependencies:
14+
- TASK-3
15+
priority: low
16+
---
17+
18+
## Description
19+
20+
<!-- SECTION:DESCRIPTION:BEGIN -->
21+
After TASK-3 enforced Conventional Commits for all contributors, the Dependabot configuration in `.github/dependabot.yml` was not updated to produce commit messages in the same format. Dependabot's auto-generated commit messages (e.g. `Bump Moq from 4.20.0 to 4.20.1`) would fail the commit-message CI validation workflow introduced in TASK-3.
22+
<!-- SECTION:DESCRIPTION:END -->
23+
24+
## Acceptance Criteria
25+
<!-- AC:BEGIN -->
26+
- [x] #1 Dependabot NuGet update commits follow the format `chore(nuget): bump <package> from <old> to <new>`
27+
- [x] #2 Dependabot GitHub Actions update commits follow the format `chore(github-actions): bump <action> from <old> to <new>`
28+
<!-- AC:END -->
29+
30+
## Implementation Plan
31+
32+
<!-- SECTION:PLAN:BEGIN -->
33+
Added `commit-message` configuration to both entries in `.github/dependabot.yml`:
34+
35+
- NuGet entry: `prefix: "chore(nuget)"`
36+
- GitHub Actions entry: `prefix: "chore(github-actions)"`
37+
38+
`include: "scope"` was intentionally omitted — that option produces `deps`/`deps-dev` as the scope (dependency-type based), not the ecosystem name. Embedding the scope directly in `prefix` is the only way to produce ecosystem-specific scopes.
39+
<!-- SECTION:PLAN:END -->
40+
41+
## Implementation Notes
42+
43+
<!-- SECTION:NOTES:BEGIN -->
44+
`commit-message.include: "scope"` in Dependabot produces `chore(deps):` or `chore(deps-dev):` based on the dependency type — it does NOT use the ecosystem name as the scope. To get `chore(nuget):` and `chore(github-actions):`, the scope must be baked directly into the `prefix` value and `include: "scope"` must be omitted.
45+
<!-- SECTION:NOTES:END -->

.github/dependabot.yml

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
1-
version: 2
2-
updates:
3-
- package-ecosystem: "nuget"
4-
directories:
5-
- "**/*"
6-
schedule:
7-
interval: "weekly"
8-
day: "sunday"
9-
time: "03:00"
10-
timezone: "Europe/Warsaw"
11-
groups:
12-
xUnit:
13-
patterns:
14-
- "xunit"
15-
- "xunit.*"
16-
- "xunit.runner.*"
17-
AutoFixture:
18-
patterns:
19-
- "AutoFixture*"
20-
Analyzers:
21-
patterns:
22-
- "*analyzer*"
23-
exclude-patterns:
24-
- "xunit.analyzers"
25-
ignore:
26-
- dependency-name: "Moq"
27-
- package-ecosystem: "github-actions"
28-
directory: "/"
29-
schedule:
30-
interval: "weekly"
31-
day: "sunday"
32-
time: "02:00"
33-
timezone: "Europe/Warsaw"
1+
version: 2
2+
updates:
3+
- package-ecosystem: "nuget"
4+
directories:
5+
- "**/*"
6+
commit-message:
7+
prefix: "chore(nuget)"
8+
schedule:
9+
interval: "weekly"
10+
day: "sunday"
11+
time: "03:00"
12+
timezone: "Europe/Warsaw"
13+
groups:
14+
xUnit:
15+
patterns:
16+
- "xunit"
17+
- "xunit.*"
18+
- "xunit.runner.*"
19+
AutoFixture:
20+
patterns:
21+
- "AutoFixture*"
22+
Analyzers:
23+
patterns:
24+
- "*analyzer*"
25+
exclude-patterns:
26+
- "xunit.analyzers"
27+
ignore:
28+
- dependency-name: "Moq"
29+
- package-ecosystem: "github-actions"
30+
directory: "/"
31+
commit-message:
32+
prefix: "chore(github-actions)"
33+
schedule:
34+
interval: "weekly"
35+
day: "sunday"
36+
time: "02:00"
37+
timezone: "Europe/Warsaw"

0 commit comments

Comments
 (0)