Skip to content

Commit bfa3a49

Browse files
BornToBeRootclaude
andauthored
CI: Dependabot: Only our own dependencies label instead of Dependabot's default labels (#3680)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1531fcf commit bfa3a49

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ updates:
77
target-branch: main
88
commit-message:
99
prefix: "Dependency (dependabot/nuget):"
10+
# Only our own label instead of Dependabot's default labels (dependencies + ecosystem, e.g. .NET / javascript)
11+
labels:
12+
- ":heavy_check_mark: dependencies"
1013
- package-ecosystem: "dotnet-sdk"
1114
directory: "/Source"
1215
ignore:
@@ -18,13 +21,17 @@ updates:
1821
target-branch: main
1922
commit-message:
2023
prefix: "Dependency (dependabot/dotnet-sdk):"
24+
labels:
25+
- ":heavy_check_mark: dependencies"
2126
- package-ecosystem: "npm"
2227
directory: "/Website"
2328
schedule:
2429
interval: weekly
2530
target-branch: main
2631
commit-message:
2732
prefix: "Dependency (dependabot/npm):"
33+
labels:
34+
- ":heavy_check_mark: dependencies"
2835
groups:
2936
# react and react-dom must have the exact same version (otherwise the website build fails)
3037
react:
@@ -42,3 +49,5 @@ updates:
4249
target-branch: main
4350
commit-message:
4451
prefix: "Dependency (dependabot/github-actions):"
52+
labels:
53+
- ":heavy_check_mark: dependencies"

‎.github/workflows/label.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ on:
44
pull_request_target:
55
types: [opened, reopened]
66

7+
# Dependabot sets the label itself (labels in .github/dependabot.yml)
78
jobs:
89
assign-dependencies-label:
910
name: Assign dependencies label
1011
runs-on: ubuntu-latest
11-
if: contains(fromJSON('["dependabot[bot]", "transifex-integration[bot]", "imgbot[bot]"]'), github.event.pull_request.user.login)
12+
if: contains(fromJSON('["transifex-integration[bot]", "imgbot[bot]"]'), github.event.pull_request.user.login)
1213
permissions:
1314
issues: write
1415
pull-requests: write

‎AGENTS.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,14 @@ The website is deployed to GitHub Pages at: https://borntoberoot.net/NETworkMana
213213
- Build and deploy are separate jobs, only the deploy job (`main` / release) has write access
214214

215215
- **Label / Milestone** (`.github/workflows/label.yml`, `.github/workflows/milestone.yml`):
216-
- Label PRs from Dependabot, Transifex and ImgBot as dependencies
216+
- Label PRs from Transifex and ImgBot as dependencies (Dependabot sets the label itself)
217217
- Assign the next-release milestone to PRs from bots and the maintainer
218218

219219
**Automation & Bots**:
220220
- **Dependabot** (`.github/dependabot.yml`):
221221
- Weekly updates for NuGet packages, .NET SDK, npm packages and GitHub Actions
222-
- Automatic PR creation for dependency updates
222+
- Automatic PR creation for dependency updates, labeled `:heavy_check_mark: dependencies` (instead of Dependabot's
223+
default labels)
223224

224225
- **Mergify** (`.github/mergify.yml`):
225226
- Auto-merges PRs with `LGTM` label after AppVeyor CI passes

0 commit comments

Comments
 (0)