-
Notifications
You must be signed in to change notification settings - Fork 197
Configure Renovate #93
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "extends": [ | ||
| ":gitSignOff", | ||
| "group:monorepos", | ||
| "group:recommended", | ||
| ":pinAllExceptPeerDependencies", | ||
| "helpers:disableTypesNodeMajor" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC this helper makes sure renovatebot doesn't update
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, exactly 👍
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See https://renovatebot.com/docs/presets-helpers/#helpersdisabletypesnodemajor {
"packageRules": [
{
"packageNames": [
"@types/node"
],
"major": {
"enabled": false
}
}
]
} |
||
| ], | ||
|
|
||
| "ignorePaths": [ | ||
| "**/node_modules/**", | ||
| "**/__tests__/**", | ||
| "**/test/**" | ||
| ], | ||
|
|
||
| "automerge": false, | ||
| "branchPrefix": "renovate/", | ||
| "ignoreUnstable": true, | ||
| "statusCheckVerify": true, | ||
| "updateNotScheduled": true, | ||
|
|
||
| "lockFileMaintenance": { | ||
| "enabled": true, | ||
| "schedule": "before 5am on monday" | ||
|
bajtos marked this conversation as resolved.
|
||
| }, | ||
|
|
||
| "prConcurrentLimit": 20, | ||
| "prCreation": "immediate", | ||
| "prHourlyLimit": 2, | ||
|
|
||
| "semanticCommits": true, | ||
| "semanticCommitType": "chore", | ||
| "semanticCommitScope": null, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure how well would |
||
|
|
||
| "separateMajorMinor": true, | ||
| "separateMinorPatch": false, | ||
|
|
||
| "packageRules": [{ | ||
| "sourceUrlPrefixes": ["https://github.com/strongloop/loopback-next"], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This rule is teaching RenovateBot about LB4 monorepo, we may want to contribute it to RenovateBot in the future. See existing monorepo definitions: https://renovatebot.com/docs/presets-monorepo/ With this rule enabled, RenovateBot will group updates of all packages published from loopback-next into a single commit/pull request. Without this rule, each If I changed the url prefix to loopback4-example-shopping as you suggested, then RenovateBot will group updates of packages from this monorepo. That does not make sense because these packages are local to this monorepo and dependency ranges are managed by lerna.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the explanation, sounds good to me 👍 |
||
| "groupName": "loopback packages" | ||
| }], | ||
|
|
||
| "masterIssue": true, | ||
| "masterIssueApproval": false, | ||
| "masterIssueAutoclose": true | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,3 +31,4 @@ branches: | |
| only: | ||
| - master | ||
| - /^greenkeeper/.*$/ | ||
| - /^renovate/.*$/ | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I was not able to find
:pinAllExceptPeerDependenciespreset...what does it do?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I explained this in #93 (comment).
See https://renovatebot.com/docs/presets-default/#pinallexceptpeerdependencies
{ "packageRules": [ { "packagePatterns": [ "*" ], "rangeStrategy": "pin" }, { "depTypeList": [ "engines", "peerDependencies" ], "rangeStrategy": "auto" } ] }