Skip to content

chore: add Renovate configuration#306

Merged
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:renovate-add-config
Mar 18, 2026
Merged

chore: add Renovate configuration#306
jennifer-shehane merged 1 commit intocypress-io:masterfrom
MikeMcC399:renovate-add-config

Conversation

@MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Mar 14, 2026

Situation

Currently all dependency updates in this repo have to be done manually.

Unlike other active repos owned by cypress-io, this repo has not been set up to use Renovate.

Change

Add a renovate.json configuration (see https://docs.renovatebot.com/config-overview/)

Configuration Notes

  • allow automerge except for major version updates. Note that with branch protection rules, this still means that each PR needs to be manually approved before Renovate automerges. Major version updates require the extra step of being manually merged after having been approved.

  • ci tests run in CircleCI using the circle.yml configuration. Since the associated tests are not testing against specific websites, as is the case in other cypress-io repos, special settings for prConcurrentLimit (default 10) or prHourlyLimit (default 2) are not needed. For transparency, they are however explicitly set to their default values in the configuration.

  • rangeStrategy set to bump will bump the range. For example "eslint": "^10.0.2" would be bumped to "eslint": "^10.0.3".

  • lockfilemaintenance runs by default once a week on Mondays

  • labels specified are type: dependencies and renovate as used in other Cypress repos. These labels do not currently exist in this repo and need to be added.

  • ESlint-related dependencies are grouped together. Especially eslint and @eslint/js are often updated together, and this reduces the number of generated PRs. (globals is not grouped with eslint, although it is related, since it is listed in dependencies rather than in devDependencies and will trigger a package release if updated. It therefore needs to be kept separate.)

Verification

npx --yes --package renovate -- renovate-config-validator

Note

Low Risk
Low risk: this only introduces Renovate configuration and does not change runtime or library code; the main impact is increased automated dependency PR activity/automerge behavior.

Overview
Introduces a repository-level renovate.json to enable Renovate-managed dependency update PRs, including a dependency dashboard and lockfile maintenance.

Configures automerge for non-major updates (with majors requiring manual merge), bumps version ranges via rangeStrategy: "bump", applies standard labels, and groups ESLint-related packages into a single update stream.

Written by Cursor Bugbot for commit ca2b7fe. This will update automatically on new commits. Configure here.

@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 self-assigned this Mar 14, 2026
@MikeMcC399 MikeMcC399 requested a review from Copilot March 14, 2026 09:54
@MikeMcC399 MikeMcC399 marked this pull request as ready for review March 14, 2026 09:55
Copy link

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

Adds Renovate configuration to automate dependency update PRs for this repository, addressing #238 and aligning the repo with dependency update automation used in other Cypress projects.

Changes:

  • Add renovate.json with recommended base preset and dependency dashboard enabled
  • Enable automerge for non-major updates while disabling automerge for major updates
  • Configure update limits, range bumping, lockfile maintenance, labels, and grouping for ESLint-related dependencies

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

@MikeMcC399
Copy link
Collaborator Author

MikeMcC399 commented Mar 14, 2026

Additional tasks

The following tasks cannot be carried out through a PR and need admin privileges:

Add labels

type: dependencies and renovate labels should be added to the repo

Enable Renovate

Activate Renovate for this repo. It should then show on https://developer.mend.io/github/cypress-io under the list of "Installed Repositories" with "Renovate Status": activated

@MikeMcC399 MikeMcC399 force-pushed the renovate-add-config branch from ca2b7fe to 46c6f80 Compare March 16, 2026 07:02
@jennifer-shehane jennifer-shehane merged commit 01f53c0 into cypress-io:master Mar 18, 2026
14 checks passed
@MikeMcC399 MikeMcC399 deleted the renovate-add-config branch March 18, 2026 14:30
@MikeMcC399
Copy link
Collaborator Author

@jennifer-shehane

Thank you for merging!

Will you now enable Renovate for this repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants