Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(infra): Separate clickup-projen into different packageRule #212

Merged
merged 4 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions renovate.json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions src/renovate-workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,24 @@ export module renovateWorkflow {
groupName: 'all non-major dependencies',
groupSlug: 'all-minor-patch',
matchPackagePatterns: ['*'],
excludePackagePatterns: ['^@time-loop\\/clickup-projen'],
Justinon marked this conversation as resolved.
Show resolved Hide resolved
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 */
Expand Down
10 changes: 9 additions & 1 deletion test/__snapshots__/renovate-workflow.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.