-
Notifications
You must be signed in to change notification settings - Fork 6
fix(dependabot): Follow Conventional Commits #312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
piotrzajac
merged 3 commits into
master
from
fix/dependabot-should-follow-conventional-commits
Apr 12, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...tasks/task-8 - Fix-Dependabot-commit-messages-to-follow-Conventional-Commits.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| --- | ||
| id: TASK-8 | ||
| title: Fix Dependabot commit messages to follow Conventional Commits | ||
| status: Done | ||
| assignee: | ||
| - piotrzajac | ||
| - claude | ||
| created_date: '2026-04-12' | ||
| updated_date: '2026-04-12' | ||
| labels: | ||
| - ci-cd | ||
| - fix | ||
| dependencies: | ||
| - TASK-3 | ||
| priority: low | ||
| --- | ||
|
|
||
| ## Description | ||
|
|
||
| <!-- SECTION:DESCRIPTION:BEGIN --> | ||
| 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. | ||
| <!-- SECTION:DESCRIPTION:END --> | ||
|
|
||
| ## Acceptance Criteria | ||
| <!-- AC:BEGIN --> | ||
| - [x] #1 Dependabot NuGet update commits follow the format `chore(nuget): bump <package> from <old> to <new>` | ||
| - [x] #2 Dependabot GitHub Actions update commits follow the format `chore(github-actions): bump <action> from <old> to <new>` | ||
| <!-- AC:END --> | ||
|
|
||
| ## Implementation Plan | ||
|
|
||
| <!-- SECTION:PLAN:BEGIN --> | ||
| Added `commit-message` configuration to both entries in `.github/dependabot.yml`: | ||
|
|
||
| - NuGet entry: `prefix: "chore(nuget)"` | ||
| - GitHub Actions entry: `prefix: "chore(github-actions)"` | ||
|
|
||
| `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. | ||
| <!-- SECTION:PLAN:END --> | ||
|
|
||
| ## Implementation Notes | ||
|
|
||
| <!-- SECTION:NOTES:BEGIN --> | ||
| `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. | ||
| <!-- SECTION:NOTES:END --> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,33 +1,37 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "nuget" | ||
| directories: | ||
| - "**/*" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" | ||
| time: "03:00" | ||
| timezone: "Europe/Warsaw" | ||
| groups: | ||
| xUnit: | ||
| patterns: | ||
| - "xunit" | ||
| - "xunit.*" | ||
| - "xunit.runner.*" | ||
| AutoFixture: | ||
| patterns: | ||
| - "AutoFixture*" | ||
| Analyzers: | ||
| patterns: | ||
| - "*analyzer*" | ||
| exclude-patterns: | ||
| - "xunit.analyzers" | ||
| ignore: | ||
| - dependency-name: "Moq" | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" | ||
| time: "02:00" | ||
| timezone: "Europe/Warsaw" | ||
| version: 2 | ||
|
piotrzajac marked this conversation as resolved.
|
||
| updates: | ||
| - package-ecosystem: "nuget" | ||
| directories: | ||
| - "**/*" | ||
| commit-message: | ||
| prefix: "chore(nuget)" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" | ||
| time: "03:00" | ||
| timezone: "Europe/Warsaw" | ||
| groups: | ||
| xUnit: | ||
| patterns: | ||
| - "xunit" | ||
| - "xunit.*" | ||
| - "xunit.runner.*" | ||
| AutoFixture: | ||
| patterns: | ||
| - "AutoFixture*" | ||
| Analyzers: | ||
| patterns: | ||
| - "*analyzer*" | ||
| exclude-patterns: | ||
| - "xunit.analyzers" | ||
| ignore: | ||
| - dependency-name: "Moq" | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| commit-message: | ||
| prefix: "chore(github-actions)" | ||
| schedule: | ||
| interval: "weekly" | ||
| day: "sunday" | ||
| time: "02:00" | ||
| timezone: "Europe/Warsaw" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.