Skip to content

Commit f2b417e

Browse files
committed
fix(dependabot): Follow Conventional Commits
1 parent 4efe7d2 commit f2b417e

File tree

2 files changed

+78
-33
lines changed

2 files changed

+78
-33
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
id: TASK-8
3+
title: Fix Dependabot commit messages to follow Conventional Commits
4+
status: Done
5+
assignee:
6+
- piotrzajac
7+
created_date: '2026-04-12'
8+
updated_date: '2026-04-12'
9+
labels:
10+
- ci-cd
11+
- fix
12+
dependencies:
13+
- TASK-3
14+
priority: low
15+
---
16+
17+
## Description
18+
19+
<!-- SECTION:DESCRIPTION:BEGIN -->
20+
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.
21+
<!-- SECTION:DESCRIPTION:END -->
22+
23+
## Acceptance Criteria
24+
<!-- AC:BEGIN -->
25+
- [x] #1 Dependabot NuGet update commits follow the format `chore(nuget): bump <package> from <old> to <new>`
26+
- [x] #2 Dependabot GitHub Actions update commits follow the format `chore(github-actions): bump <action> from <old> to <new>`
27+
<!-- AC:END -->
28+
29+
## Implementation Plan
30+
31+
<!-- SECTION:PLAN:BEGIN -->
32+
Added `commit-message` configuration with `prefix: "chore"` and `include: "scope"` to both the `nuget` and `github-actions` entries in `.github/dependabot.yml`. Dependabot appends the package-manager name as the scope automatically, producing messages like `chore(nuget): bump ...` and `chore(github-actions): bump ...`.
33+
<!-- SECTION:PLAN:END -->
34+
35+
## Implementation Notes
36+
37+
<!-- SECTION:NOTES:BEGIN -->
38+
Dependabot `commit-message.include: "scope"` uses the package-ecosystem name as the scope (e.g. `nuget`, `github-actions`), which satisfies the Conventional Commits scope requirement without any custom scripting.
39+
<!-- SECTION:NOTES:END -->

.github/dependabot.yml

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

0 commit comments

Comments
 (0)