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

perf: changed schedule and migrated configs #21

Merged
merged 1 commit into from
Dec 4, 2024
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
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,14 @@ and it configures the following:

##### Rules for [reducing noise](https://docs.renovatebot.com/noise-reduction/):

Only automatically create one PR at a time and only create/update PRs [outside of office hours](https://docs.renovatebot.com/presets-schedule/#schedulenonofficehours).
Only automatically create one PR at a time and only create/update PRs in the morning and evening,
which is related to the start and end of working days.
Create the PR right away when checks done by renovate (like [`npm:unpublishSafe`](https://docs.renovatebot.com/presets-npm/#npmunpublishsafe)) pass
and only up to six times per hour (every 10 min).
All major version bumps need to be triggered manually from the dependency dashboard.

```json
{
"extends": [
"schedule:nonOfficeHours"
],
"internalChecksFilter": "strict",
"prConcurrentLimit": 1,
"prHourlyLimit": 6,
Expand All @@ -154,7 +152,8 @@ All major version bumps need to be triggered manually from the dependency dashbo
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
}
]
],
"schedule": ["* 7-9,18-19 * * 1-5"]
}
```

Expand Down
11 changes: 4 additions & 7 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
":prImmediately",
":separateMajorReleases",
":separateMultipleMajorReleases",
"schedule:nonOfficeHours",
"preview:dockerVersions",
"regexManagers:dockerfileVersions"
"customManagers:dockerfileVersions"
],
"internalChecksFilter": "strict",
"prConcurrentLimit": 1,
Expand All @@ -27,9 +26,7 @@
},
"addLabels": ["dependencies"],
"packageRules": [
{
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
}
]
{"matchUpdateTypes": ["major"], "dependencyDashboardApproval": true}
],
"schedule": ["* 7-9,18-19 * * 1-5"]
}
38 changes: 12 additions & 26 deletions javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,16 @@
],
"dependencyDashboardHeader": "Uses https://github.com/bettermarks/renovate-config#javascript \nPR that have automerge enabled [might be approved automatically](https://github.com/bettermarks/approve-dependency-pr#readme)",
"packageRules": [
{
"matchUpdateTypes": ["pin"],
"prPriority": 10,
"automerge": true
},
{"matchUpdateTypes": ["pin"], "prPriority": 10, "automerge": true},
{
"matchPackageNames": ["node", "@types/node"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{"matchPackageNames": ["node"], "rangeStrategy": "replace"},
{"matchDepTypes": ["resolutions"], "rangeStrategy": "auto"},
{
"matchPackageNames": ["node"],
"rangeStrategy": "replace"
},
{
"matchDepTypes": ["resolutions"],
"rangeStrategy": "auto"
},
{
"matchPackagePatterns": ["^@bettermarks\/.*", "^bm-.*"],
"matchPackageNames": ["/^@bettermarks/.*/", "/^bm-.*/"],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"prPriority": 5,
"minimumReleaseAge": null,
Expand All @@ -40,11 +30,11 @@
"prPriority": 2
},
{
"matchSourceUrlPrefixes": [
"https://github.com/aws",
"https://github.com/cdk8s-team",
"https://github.com/cdktf",
"https://github.com/hashicorp"
"matchSourceUrls": [
"https://github.com/aws{/,}**",
"https://github.com/cdk8s-team{/,}**",
"https://github.com/cdktf{/,}**",
"https://github.com/hashicorp{/,}**"
],
"groupName": "js infrastructure packages",
"minimumReleaseAge": null,
Expand All @@ -54,16 +44,12 @@
"automerge": true
},
{
"matchManagers": [
"npm"
],
"matchPackageNames": [
"@types/jest"
],
"matchManagers": ["npm"],
"matchPackageNames": ["@types/jest"],
"versioning": "jest"
},
{
"matchPackagePatterns": ["^@types\/.*"],
"matchPackageNames": ["/^@types/.*/"],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"minimumReleaseAge": null,
"prPriority": -5,
Expand Down
Loading