Repository navigation
ci: label Dependabot PRs - #567
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 organization’s dependency label to both Dependabot update entries so its pull requests use 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 #567 +/- ##
=======================================
Coverage 71.40% 71.40%
=======================================
Files 23 23
Lines 5655 5655
Branches 199 199
=======================================
Hits 4038 4038
Misses 1610 1610
Partials 7 7 ☔ 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>
# Pull request titles must be Conventional Commits (PR title check)
commit-message:
prefix: ci
+ labels: ["type: dependencies"]
schedule:
interval: monthly
</code_context>
<issue_to_address>
**Dependency label is missing**
When the repository does not already have a `type: dependencies` label, dependabot cannot apply the configured label, leaving its pull requests without the intended `type: dependencies` classification. The repository contains no label-provisioning configuration to ensure the label exists.
Ensure the label exists in the repository before relying on these settings.
Also at `.github/dependabot.yml:21`.
</issue_to_address>Linked issues
#566 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 | Both updates entries have the requested label; the configuration has no multi-ecosystem groups. |
Sourcery assessment
Needs a human reviewer. 1 finding to address first, and dependabot will add this label to generated PRs, and labels already applied will remain after the config is reverted. The effect is limited to PR metadata and can be corrected by removing the labels.
Blocking findings: .github/dependabot.yml:10
| # Pull request titles must be Conventional Commits (PR title check) | ||
| commit-message: | ||
| prefix: ci | ||
| labels: ["type: dependencies"] |
There was a problem hiding this comment.
🟡 Medium · Dependency label is missing
When the repository does not already have a type: dependencies label, dependabot cannot apply the configured label, leaving its pull requests without the intended type: dependencies classification. The repository contains no label-provisioning configuration to ensure the label exists.
Ensure the label exists in the repository before relying on these settings.
Also at .github/dependabot.yml:21.
Prompt for AI agents
In `.github/dependabot.yml` at line 10:
**Dependency label is missing**
When the repository does not already have a `type: dependencies` label, dependabot cannot apply the configured label, leaving its pull requests without the intended `type: dependencies` classification. The repository contains no label-provisioning configuration to ensure the label exists.
Ensure the label exists in the repository before relying on these settings.
Also at `.github/dependabot.yml:21`.
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 #566
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 pull requests created by all configured Dependabot update entries.