diff --git a/renovate.json5 b/renovate.json5 index bc6ab85e..521bc059 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -19,6 +19,9 @@ "matchPackagePatterns": [ "*" ], + "excludePackagePatterns": [ + "^@time-loop\\/clickup-projen" + ], "matchUpdateTypes": [ "minor", "patch" @@ -26,8 +29,7 @@ "automerge": true, "addLabels": [ "auto-approve" - ], - "allowedVersions": "!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/" + ] }, { "matchDepTypes": [ @@ -36,6 +38,12 @@ "addLabels": [ "optional" ] + }, + { + "matchPackagePatterns": [ + "^@time-loop\\/clickup-projen" + ], + "allowedVersions": "!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/" } ], "ignoreDeps": [ diff --git a/src/renovate-workflow.ts b/src/renovate-workflow.ts index bfd96ea8..f5a8f27c 100644 --- a/src/renovate-workflow.ts +++ b/src/renovate-workflow.ts @@ -119,20 +119,24 @@ export module renovateWorkflow { groupName: 'all non-major dependencies', groupSlug: 'all-minor-patch', matchPackagePatterns: ['*'], + excludePackagePatterns: ['^@time-loop\\/clickup-projen'], matchUpdateTypes: ['minor', 'patch'], // Tell renovate to enable github's auto merge feature on the PR automerge: options.autoMergeNonBreakingUpdates ? true : undefined, // Adding the auto-approve label will make projens auto approve workflow approve the PR so it will be auto merged addLabels: [options.autoMergeNonBreakingUpdates ? AUTO_APPROVE_PR_LABEL : undefined], - // Bypass prerelease versions: - // https://docs.renovatebot.com/configuration-options/#allowedversions - // 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).*$/', }, { matchDepTypes: ['optionalDependencies'], addLabels: [OPTIONAL_RENOVATE_PR_LABEL], }, + { + matchPackagePatterns: ['^@time-loop\\/clickup-projen'], + // Bypass prerelease versions: + // https://docs.renovatebot.com/configuration-options/#allowedversions + // 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).*$/', + }, ], /* 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 a9cbde33..b2e8bf7e 100644 --- a/test/__snapshots__/renovate-workflow.test.ts.snap +++ b/test/__snapshots__/renovate-workflow.test.ts.snap @@ -114,8 +114,10 @@ exports[`getRenovateOptions defaults 1`] = ` "addLabels": [ undefined, ], - "allowedVersions": "!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/", "automerge": undefined, + "excludePackagePatterns": [ + "^@time-loop\\/clickup-projen", + ], "groupName": "all non-major dependencies", "groupSlug": "all-minor-patch", "matchPackagePatterns": [ @@ -134,6 +136,12 @@ exports[`getRenovateOptions defaults 1`] = ` "optionalDependencies", ], }, + { + "allowedVersions": "!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/", + "matchPackagePatterns": [ + "^@time-loop\\/clickup-projen", + ], + }, ], "platformAutomerge": true, "prConcurrentLimit": 0,