Skip to content

ci: label Dependabot PRs - #567

Merged
uniqueg merged 1 commit into
devfrom
ci/dependabot-labels
Nov 9, 2026
Merged

uniqueg merged 1 commit 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 #566

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:

  • Apply the type: dependencies label to pull requests created by all configured Dependabot update entries.

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
Contributor

Reviewer's Guide

Configuration

Add the organization’s dependency label to both Dependabot update entries so its pull requests use the intended label.

  • .github/dependabot.yml L10, L21

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 71.40%. Comparing base (ab13670) to head (8b8da47).
⚠️ Report is 1 commits behind head on dev.

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.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@uniqueg
uniqueg marked this pull request as ready for review November 9, 2026 01:05
@uniqueg
uniqueg requested a review from anuragxxd as a code owner November 9, 2026 01:05
@uniqueg
uniqueg merged commit 44c6f96 into dev Nov 9, 2026
19 checks passed
@uniqueg
uniqueg deleted the ci/dependabot-labels branch November 9, 2026 01:05

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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="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


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

Comment thread .github/dependabot.yml
# Pull request titles must be Conventional Commits (PR title check)
commit-message:
prefix: ci
labels: ["type: dependencies"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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`.

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