From 9c45c9aa6cf2f5a9126977d8873528f77e2be6a1 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Thu, 5 Oct 2023 16:13:36 +0200 Subject: [PATCH 1/2] Create separate group for non-patch Rails updates As a reaction for the Rails 7.1 release today: https://rubyonrails.org/2023/10/5/Rails-7-1-0-has-been-released I tried it out on a personal project and the PR / commit message looks as expected: https://github.com/andyundso/anno1800-goods-tracker/pull/227 --- README.md | 1 + default.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/README.md b/README.md index 98398d9..8c8245a 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ A Renovate preset with common configuration for all Simplificator projects. The * Regex manager to update the bundler version found in `Gemfile.lock`. * Group all non-major updates for packages with versions above 1.0.0. * Group all patch updates for packages below version 1.0.0. +* Create a separate group for all non-patch Rails updates. * Apply the `bump` strategy for `npm`. * Apply the `update-lockfile` strategy for `bundler`. * Apply the `pin` strategy for `mix`. diff --git a/default.json b/default.json index 44b8aa0..a7d01b3 100644 --- a/default.json +++ b/default.json @@ -54,6 +54,20 @@ "patch" ] }, + { + "matchPackageNames": [ + "rails" + ], + "matchPackagePatterns": [ + "^@rails/" + ], + "matchUpdateTypes": [ + "major", + "minor" + ], + "commitMessageAction": "Apply", + "groupName": "all non-patch Rails updates" + }, { "matchManagers": [ "npm" From d0957ba85708af8969b91bc0d3e3e59b08494ec4 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Thu, 5 Oct 2023 16:15:46 +0200 Subject: [PATCH 2/2] Provide path to config file in validator action --- .github/workflows/renovate-config-validation.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/renovate-config-validation.yml b/.github/workflows/renovate-config-validation.yml index 2ca0fa1..94f837d 100644 --- a/.github/workflows/renovate-config-validation.yml +++ b/.github/workflows/renovate-config-validation.yml @@ -15,3 +15,5 @@ jobs: - name: Validate uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3 + with: + config_file_path: "default.json"