From fdfcde7f806e56eed045da9ed47fa18b5ec99988 Mon Sep 17 00:00:00 2001 From: Andrew Hammond <445764+ahammond@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:46:24 -0700 Subject: [PATCH] feat(renovate): major version warning [CLK-516942] --- src/renovate-workflow.ts | 5 +++++ test/__snapshots__/renovate-workflow.test.ts.snap | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/renovate-workflow.ts b/src/renovate-workflow.ts index 6f2ace5e..3a3f5d91 100644 --- a/src/renovate-workflow.ts +++ b/src/renovate-workflow.ts @@ -140,6 +140,11 @@ export module renovateWorkflow { // Ex: 1.1.1 is allowed, 1.1.1-beta.0 is not allowed. allowedVersions: '!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/', }, + { + matchPackagePrefixes: ['@time-loop/'], + matchUpdateTypes: ['major'], + prBodyNotes: ['# MAJOR VERSION UPDATE', 'Read the release notes!'], + }, ], /* override defaults set in config:base preset */ diff --git a/test/__snapshots__/renovate-workflow.test.ts.snap b/test/__snapshots__/renovate-workflow.test.ts.snap index 9b163107..1de15a91 100644 --- a/test/__snapshots__/renovate-workflow.test.ts.snap +++ b/test/__snapshots__/renovate-workflow.test.ts.snap @@ -142,6 +142,18 @@ exports[`getRenovateOptions defaults 1`] = ` "^@time-loop\\/clickup-projen", ], }, + { + "matchPackagePrefixes": [ + "@time-loop/", + ], + "matchUpdateTypes": [ + "major", + ], + "prBodyNotes": [ + "# MAJOR VERSION UPDATE", + "Read the release notes!", + ], + }, ], "platformAutomerge": true, "prConcurrentLimit": 0,