Repository navigation
ci: label Dependabot PRs - #90
Conversation
Set labels: ["type: dependencies"] on every updates entry of .github/dependabot.yml, so that Dependabot pull requests carry the organisation's label instead of recreating its default labels (dependencies and ecosystem labels), which are not in the org label set. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideConfigurationAdd the organisation’s dependency label to each Dependabot update source so generated pull requests receive the intended label.
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 #90 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 1518 1518
=========================================
Hits 1518 1518 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/dependabot.yml" line_range="10" />
<code_context>
# together; the image build installs the locked ones (`Dockerfile`)
- package-ecosystem: uv
directory: /
+ labels: ["type: dependencies"]
schedule:
interval: monthly
</code_context>
<issue_to_address>
**Security PRs miss organization label**
When dependabot opens a security-update PR, dependabot security-update PRs do not use these per-`updates` labels, so they retain their default labels and lack `type: dependencies`, contrary to the broad claim that Dependabot PRs carry the organization label.
Add supported automation to apply `type: dependencies` to security-update PRs, or narrow the claim to version-update PRs.
</issue_to_address>Linked issues
#89 ci: label Dependabot PRs with type: dependencies · 1 of 1 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Set labels: ["type: dependencies"] on every updates entry and every multi-ecosystem group, if any. |
✅ Met | All six updates entries have the requested label; the config contains no multi-ecosystem groups. |
Sourcery assessment
Needs a human reviewer. 1 finding to address first, and dependabot-created PRs will receive the type: dependencies label; if that label is wrong, reverting this config change will not remove it from PRs already created, but those labels can be removed manually.
Blocking findings: .github/dependabot.yml:10
Summary
Sets
labels: ["type: dependencies"]on everyupdatesentry of.github/dependabot.yml(and on multi-ecosystem groups, if any), so thatDependabot pull requests carry the organisation's label instead of
recreating Dependabot's default labels.
Closes #89
Verification
yq; everyupdatesentry has exactlylabels: ["type: dependencies"], and the file is otherwise semanticallyunchanged (
yqcomparison with the label keys removed).Lane
Light lane: configuration only (Dependabot config), no secrets,
permissions or release workflow touched; reviewed the diff by hand.
Declined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
CI:
type: dependencieslabel to generated pull requests.