Skip to content

Create dependabot.yml #1686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Create dependabot.yml #1686

wants to merge 2 commits into from

Conversation

koddsson
Copy link
Member

@koddsson koddsson commented May 8, 2025

I'm hoping this will allow us to stay on top of security updates for both Chai 4 and Chai 5.

cc/ #1684

@koddsson koddsson requested a review from a team as a code owner May 8, 2025 13:16
@koddsson koddsson requested a review from Copilot May 8, 2025 13:17
Copy link

@Copilot 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

This PR creates a Dependabot configuration file to help us stay on top of security updates for both Chai 4 and Chai 5.

  • Adds a new dependabot.yml file under the .github directory.
  • Configures two update entries for the npm package ecosystem: one for the default branch and one for branch "4.x.x".

Copy link
Member

@keithamus keithamus left a comment

Choose a reason for hiding this comment

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

We probably shouldn't use both Renovate & Dependabot; other repos in the chai org use renovate. Perhaps worth looking into that?

The config for loupe was added in chaijs/loupe@c457f7a.

Looks like baseBranches can be used to select multiple branches to ensure stuff is up-to-date in 4.x, so maybe we want something like:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:recommended"
  ],
  "baseBranches": ["main", "4.x.x"],
  "packageRules": [
    {
      "groupName": "dependencies",
      "matchUpdateTypes": [
        "minor",
        "patch"
      ],
      "schedule": [
        "before 9am on monday"
      ]
    }
  ]
}

@koddsson
Copy link
Member Author

koddsson commented May 8, 2025

Ah I keep forgetting we're using Renovate. I'll look into that and then open up a new PR.

@koddsson koddsson closed this May 8, 2025
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