Skip to content

ci: label Dependabot PRs - #461

Merged
uniqueg merged 2 commits into
devfrom
ci/dependabot-labels
Nov 9, 2026
Merged

uniqueg merged 2 commits into
devfrom
ci/dependabot-labels

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Sets labels: ["type: dependencies"] on every updates entry of
.github/dependabot.yml (and on multi-ecosystem groups, if any), so that
Dependabot pull requests carry the organisation's label instead of
recreating Dependabot's default labels.

Closes #460

Verification

  • The edited file parses with yq; every updates entry has exactly
    labels: ["type: dependencies"], and the file is otherwise semantically
    unchanged (yq comparison with the label keys removed).
  • Comments and formatting are unchanged (one inserted line per entry).

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:

  • Configure Dependabot updates and multi-ecosystem groups to apply the type: dependencies label to generated pull requests.

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]>
@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add the type: dependencies label to each Dependabot update entry and the service-images multi-ecosystem group so their pull requests receive the organisation’s label.

  • .github/dependabot.yml L12-115 (7 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (a8ec7ee) to head (d6737e8).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #461   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         3013      3013           
=========================================
  Hits          3013      3013           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35754737 | 📁 Comparing d6737e8 against latest (c7fcfff)

  🔍 Preview build  

5 files changed · ± 5 modified

± Modified

@uniqueg
uniqueg marked this pull request as ready for review November 9, 2026 14:07

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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="22" />
<code_context>
   # to the same references (`tests/test_repository.py` checks), in one pull
   # request for both files
   service-images:
+    labels: ["type: dependencies"]
     schedule:
       interval: monthly
</code_context>
<issue_to_address>
**Security PRs keep default labels**

When dependabot creates a security-update PR for a vulnerable dependency, dependabot’s `updates[].labels` setting applies to version-update PRs, not security-update PRs, so those PRs retain the default labels instead of receiving `type: dependencies`. The `.github` workflow search found no other security-PR labeling handling.

Add a mechanism that labels security-update PRs too, such as a pull-request workflow, if those PRs are intended to carry this label.

Also at `.github/dependabot.yml:53`, `.github/dependabot.yml:64`, `.github/dependabot.yml:85`, `.github/dependabot.yml:99`, `.github/dependabot.yml:115`.
</issue_to_address>

Linked issues

#460 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. ✅ Met All six update entries and the service-images multi-ecosystem group have the requested label.

Sourcery assessment

Needs a human reviewer. 1 finding to address first, and dependabot will add the dependency label to generated PRs. Reverting the configuration stops future applications, but labels already added remain on existing PRs until removed; that is bounded and easy to repair.

Blocking findings: .github/dependabot.yml:22


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .github/dependabot.yml Resolved
@uniqueg
uniqueg merged commit eb596d2 into dev Nov 9, 2026
50 checks passed
@uniqueg
uniqueg deleted the ci/dependabot-labels branch November 9, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: label Dependabot PRs with type: dependencies

1 participant