Skip to content

Enable Dependabot for automated dependency updates#1055

Open
KushDutta23 wants to merge 1 commit intofossasia:masterfrom
KushDutta23:patch-9
Open

Enable Dependabot for automated dependency updates#1055
KushDutta23 wants to merge 1 commit intofossasia:masterfrom
KushDutta23:patch-9

Conversation

@KushDutta23
Copy link

@KushDutta23 KushDutta23 commented Mar 17, 2026

Adds Dependabot configuration to enable automated dependency updates.

  • Enabled pip (Python), npm (JavaScript), and GitHub Actions updates
  • Weekly schedule to balance update frequency and noise

This is a configuration-only change and does not affect existing functionality.

Summary by Sourcery

Build:

  • Introduce Dependabot configuration for weekly pip, npm, and GitHub Actions dependency update checks and pull requests.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 17, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a Dependabot configuration file to enable weekly automated dependency update PRs for pip, npm, and GitHub Actions with a limit on concurrent update PRs.

Sequence diagram for weekly Dependabot dependency update process

sequenceDiagram
  participant Scheduler as Weekly_scheduler
  participant Dependabot as GitHub_Dependabot
  participant Repo as Repository
  participant Maintainer as Repository_maintainer

  Scheduler->>Dependabot: Trigger_weekly_run
  Dependabot->>Repo: Read_dependabot_yml_config
  Dependabot->>Repo: Scan_pip_dependencies
  Dependabot->>Repo: Scan_npm_dependencies
  Dependabot->>Repo: Scan_github_actions_versions

  Dependabot->>Dependabot: Calculate_required_updates
  Dependabot->>Dependabot: Enforce_open_PR_limit_max_5

  loop For_each_allowed_update
    Dependabot->>Repo: Create_dependency_update_PR
    Repo-->>Maintainer: Notify_about_new_PR
  end
Loading

File-Level Changes

Change Details Files
Introduce Dependabot configuration for automated dependency updates across ecosystems.
  • Add .github/dependabot.yml with version 2 configuration syntax
  • Configure weekly update schedule for pip dependencies at repository root with a cap on open Dependabot PRs
  • Configure weekly update schedule for npm dependencies at repository root with a cap on open Dependabot PRs
  • Configure weekly update schedule for GitHub Actions workflows at repository root
.github/dependabot.yml

Possibly linked issues

  • #Configure Dependabot version updates for the visdom repository: PR adds .github/dependabot.yml enabling weekly pip, npm, and GitHub Actions updates as requested in the issue.

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
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 left some high level feedback:

  • Consider specifying a time and day for the weekly schedules to control when Dependabot PRs arrive and avoid them landing during peak working hours.
  • You may want to add ignore or groups settings (especially for npm and pip) to avoid a large number of small PRs for minor/patch updates and to bundle related dependency bumps together.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider specifying a `time` and `day` for the weekly schedules to control when Dependabot PRs arrive and avoid them landing during peak working hours.
- You may want to add `ignore` or `groups` settings (especially for npm and pip) to avoid a large number of small PRs for minor/patch updates and to bundle related dependency bumps together.

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.

@KushDutta23
Copy link
Author

Thanks for the suggestions!

I've updated the Dependabot configuration to:

  • Specify a fixed day and time for weekly updates to avoid peak hours
  • Group dependency updates for pip and npm to reduce PR noise

This should make updates more predictable and easier to review.
Let me know if you'd prefer a different schedule or grouping strategy.

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.

1 participant