Skip to content

NXPY-268: Update Dependabot configuration for daily updates#327

Open
mr-shekhar wants to merge 3 commits intomasterfrom
wip-NXPY-268-enable-dependabot-version-update
Open

NXPY-268: Update Dependabot configuration for daily updates#327
mr-shekhar wants to merge 3 commits intomasterfrom
wip-NXPY-268-enable-dependabot-version-update

Conversation

@mr-shekhar
Copy link
Copy Markdown
Collaborator

@mr-shekhar mr-shekhar commented Mar 10, 2026

Changed the update interval to daily and added labels and assignees for dependabot version updates

Summary by Sourcery

Build:

  • Add Dependabot configuration file to schedule daily dependency updates with specified labels, assignee, and open PR limit.

Changed the update interval to daily and added labels and assignees for better management.
Copilot AI review requested due to automatic review settings March 10, 2026 08:46
@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai bot commented Mar 10, 2026

Reviewer's Guide

Introduce a Dependabot configuration file to enable daily automated dependency update PRs with specific labels and assignee for general and Python (pip) dependencies.

Sequence diagram for daily Dependabot update PRs

sequenceDiagram
  actor Maintainer
  participant GitHubRepository
  participant DependabotService
  participant GitHubActionsCI

  rect rgb(230,230,250)
    Note over DependabotService: Daily schedule from dependabot.yml
    DependabotService->>GitHubRepository: Scan package manifests in directory /
    DependabotService->>GitHubRepository: Check generic ecosystem dependencies
    DependabotService->>GitHubRepository: Check pip dependencies
  end

  alt Updates required for generic ecosystem
    DependabotService->>GitHubRepository: Create PR with labels dependencies, QA/CI
    DependabotService->>GitHubRepository: Assign PR to mr-shekhar
  end

  alt Updates required for pip ecosystem
    DependabotService->>GitHubRepository: Create PR with label dependencies
    DependabotService->>GitHubRepository: Assign PR to mr-shekhar
  end

  GitHubRepository->>GitHubActionsCI: Trigger workflows for new Dependabot PR
  GitHubActionsCI-->>GitHubRepository: Report CI status on PR
  Maintainer->>GitHubRepository: Review and merge Dependabot PR
Loading

File-Level Changes

Change Details Files
Add Dependabot v2 configuration with daily schedule and metadata for updates.
  • Create .github/dependabot.yml using Dependabot version 2 configuration format
  • Define a generic update rule with an unspecified package ecosystem, root directory scope, and a daily update schedule
  • Attach dependency-related labels and a QA/CI label to the generic update rule and set a default assignee for generated PRs
  • Add a separate update rule for the pip ecosystem with a daily schedule, default assignee, dependency label, and an increased open pull request limit of 60
.github/dependabot.yml

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

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 3 issues, and left some high level feedback:

  • The first updates entry has package-ecosystem: "", which will make the Dependabot config invalid; set this to a concrete ecosystem (e.g. github-actions, pip, etc.) or remove the block if it’s not needed.
  • The indentation of the first block’s assignees key (and the comment below it) is off by one space compared to surrounding keys, which will break YAML parsing; align it with labels and schedule.
  • The second updates entry for pip is missing a directory field, which Dependabot requires to know where to look for manifests; add the appropriate directory (e.g. /).
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The first `updates` entry has `package-ecosystem: ""`, which will make the Dependabot config invalid; set this to a concrete ecosystem (e.g. `github-actions`, `pip`, etc.) or remove the block if it’s not needed.
- The indentation of the first block’s `assignees` key (and the comment below it) is off by one space compared to surrounding keys, which will break YAML parsing; align it with `labels` and `schedule`.
- The second `updates` entry for `pip` is missing a `directory` field, which Dependabot requires to know where to look for manifests; add the appropriate directory (e.g. `/`).

## Individual Comments

### Comment 1
<location path=".github/dependabot.yml" line_range="8" />
<code_context>
+
+version: 2
+updates:
+  - package-ecosystem: "" # See documentation for possible values
+    directory: "/" # Location of package manifests
+    schedule:
</code_context>
<issue_to_address>
**issue (bug_risk):** Empty package-ecosystem value will cause Dependabot to ignore this entry or fail parsing.

If this block should be active, set `package-ecosystem` to a valid value (e.g. `github-actions`, `pip`, `npm`). If it’s only a template/example, consider removing the block to avoid Dependabot misparsing or silently ignoring it.
</issue_to_address>

### Comment 2
<location path=".github/dependabot.yml" line_range="12-16" />
<code_context>
+    directory: "/" # Location of package manifests
+    schedule:
+      interval: "daily"
+    labels:
+      - dependencies
+      - QA/CI
+     assignees:
+      - mr-shekhar
+
+     # Python requirements
</code_context>
<issue_to_address>
**issue (bug_risk):** Inconsistent indentation around `assignees` likely results in invalid YAML.

`assignees` and its list item are mis-indented relative to `labels` and its items, which will invalidate the YAML. Please indent `assignees` to the same level as `labels`, and `- mr-shekhar` to the same level as the other list items.
</issue_to_address>

### Comment 3
<location path=".github/dependabot.yml" line_range="19-26" />
<code_context>
+      - mr-shekhar
+
+     # Python requirements
+  - package-ecosystem: pip
+    schedule:
+      interval: daily
+    assignees:
+      - mr-shekhar
+    labels:
+      - dependencies
+    open-pull-requests-limit: 60
</code_context>
<issue_to_address>
**suggestion (bug_risk):** The pip update block is missing a `directory` field, which Dependabot v2 expects per update.

In v2 configs each `updates` entry should include a `directory` for its manifests. The first block uses `directory: "/"`, but the `pip` block omits it. Please add an explicit `directory` (e.g. `/` or the requirements folder) to avoid unexpected Dependabot behavior.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repository’s Dependabot configuration to run version updates daily and apply consistent triage metadata (labels/assignees) to Dependabot PRs.

Changes:

  • Adds a new .github/dependabot.yml configuration file.
  • Sets the update schedule interval to daily.
  • Configures labels and assignees for Dependabot update PRs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +8 to +18
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- dependencies
- QA/CI
assignees:
- mr-shekhar

# Python requirements
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

package-ecosystem is set to an empty string (placeholder). Dependabot configs require a valid ecosystem value (e.g., pip, github-actions, npm, etc.); leaving this empty will cause the config to be rejected. Please set a valid ecosystem or remove this update entry entirely.

Suggested change
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- dependencies
- QA/CI
assignees:
- mr-shekhar
# Python requirements
# Python requirements

Copilot uses AI. Check for mistakes.
Comment on lines +15 to +18
assignees:
- mr-shekhar

# Python requirements
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

YAML indentation is inconsistent around assignees (and the following comment). As written, assignees is indented differently than labels, which will break YAML parsing and prevent Dependabot from loading this config. Align assignees: with labels: under the same update entry and ensure the comment indentation doesn’t introduce an extra mapping level.

Suggested change
assignees:
- mr-shekhar
# Python requirements
assignees:
- mr-shekhar
# Python requirements

Copilot uses AI. Check for mistakes.
Comment on lines +15 to +21
assignees:
- mr-shekhar

# Python requirements
- package-ecosystem: pip
schedule:
interval: daily
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The second update entry (package-ecosystem: pip) is missing the required directory: field that tells Dependabot where to find the manifests. Without it, the config will be invalid. Add directory: "/" (or the correct subdirectory) to this entry.

Suggested change
assignees:
- mr-shekhar
# Python requirements
- package-ecosystem: pip
schedule:
interval: daily
assignees:
- mr-shekhar
# Python requirements
- package-ecosystem: pip
directory: "/"
schedule:
interval: "daily"

Copilot uses AI. Check for mistakes.
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.

2 participants