From d88020d21596ab985d0198bf7ae3ffe2494fa613 Mon Sep 17 00:00:00 2001 From: Christophe Winkler Date: Fri, 17 Jan 2025 15:40:19 +0100 Subject: [PATCH 1/2] ci: add groups to dependabot Force dependabot to do grouped PRs (react, storybook, emotion...) --- .github/dependabot.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bf1a6c63..65e33538 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,40 @@ updates: # Check the npm registry for updates every day (weekdays) schedule: interval: "daily" + # Define commit message prefixes for different types of updates + commit-message: + prefix: fix + prefix-development: chore + # Create a group of dependencies to be updated together in one pull request: + # https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + groups: + # Group name is used in pull request titles and branch names + react: + applies-to: version-updates # Applies the group rule to version updates + update-types: # Allows minor and patch updates + - "minor" + - "patch" + patterns: # Define patterns to include dependencies in the group (based on dependency name) + - "react" # Group the "react" dependency + - "react-dom" # Group the "react-dom" dependency + - "@types/react" # ... + - "@types/react-dom" + - "@types/react-color" + # exclude react-redux as it drops the support for react 17 + # Other groups are not documented ;) + mui: + applies-to: version-updates + patterns: + - "@mui/*" + emotion: + applies-to: version-updates + patterns: + - "@emotion/*" + storybook: + applies-to: version-updates + update-types: # Allows minor and patch updates. Wait for manual PR for major updates + - "minor" + - "patch" + patterns: + - "storybook" + - "@storybook/*" From 086a54b36934ac453636dd59ed3566d4d029b48c Mon Sep 17 00:00:00 2001 From: Christophe Winkler Date: Fri, 17 Jan 2025 15:56:55 +0100 Subject: [PATCH 2/2] ci: add testing-library group --- .github/dependabot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 65e33538..8e7be4ad 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -35,6 +35,10 @@ updates: applies-to: version-updates patterns: - "@emotion/*" + testing-library: + applies-to: version-updates + patterns: + - "@testing-library/*" storybook: applies-to: version-updates update-types: # Allows minor and patch updates. Wait for manual PR for major updates