Repository navigation
ci: let Dependabot label all its pull requests - #301
Conversation
Set the organisation's label `type: dependencies` on every Dependabot entry, so that its pull requests no longer get Dependabot's own labels. Remove `target-branch` from every entry: it names the default branch anyway, and while it is set, GitHub doesn't apply an entry's options, labels included, to security updates. The `ignore` rules now also apply to security updates, as intended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer's GuideConfigurationAdd the organisation’s dependency label to each Dependabot update entry and remove
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #301 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 422 422
=========================================
Hits 422 422 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Linked issuesChecked at commit dc93543 #300 ci: let Dependabot label all its pull requests · 3 of 4 met · 1 to check by hand
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. If the configuration is wrong, Dependabot pull requests may get an incorrect label or target branch; the affected PRs can be corrected individually. Reverting stops the behavior on future PRs, but does not remove labels already applied.
Summary
Lets Dependabot label all its pull requests, security updates included, with the organisation's label
type: dependenciesonly, instead of its own labels (dependenciesplus an ecosystem label).In
.github/dependabot.yml:labels: ["type: dependencies"]to everyupdatesentry (3: uv, github-actions, pre-commit).target-branch: devfrom every entry (3 entries).devis the default branch, so version updates still target it.target-branchwith one that explains why no entry sets it.ignorerules, so security updates change only in their labels.Nothing else changes: compared as data (keys sorted), the new file equals the old one minus
target-branchpluslabelson every entry.Closes #300
Light lane: CI configuration only (Dependabot), no secrets, permissions or release workflow touched, so the reviewer subagents were skipped; I reviewed the diff myself.
Verification
yqparses the new.github/dependabot.yml; everyupdatesentry haslabels: ["type: dependencies"]; notarget-branchis left.yq -o=json 'sort_keys(..)'): only the intended change.CI passedgreen).Declined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Standardize Dependabot pull request labeling while relying on the repository’s default branch configuration.
Enhancements:
type: dependencieslabel, including security updates.