renovate bot
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Renovate Preset
|
||||
|
||||
This directory contains a shared Renovate preset that other repositories can extend.
|
||||
|
||||
## Usage
|
||||
|
||||
In another repository's `renovate.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": ["github>my-org/my-repo//renovate-preset"]
|
||||
}
|
||||
```
|
||||
|
||||
Adjust `my-org/my-repo` to point at this repository.
|
||||
|
||||
## Behavior
|
||||
|
||||
- Auto-merges patch and minor updates.
|
||||
- Groups common monorepo package families into single PRs.
|
||||
- Schedules Renovate runs on weekends before 6am UTC.
|
||||
- Keeps security alerts from auto-merging.
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:recommended"],
|
||||
"timezone": "UTC",
|
||||
"schedule": ["before 6am on saturday", "before 6am on sunday"],
|
||||
"automerge": true,
|
||||
"automergeType": "pr",
|
||||
"automergeStrategy": "squash",
|
||||
"automergeSchedule": ["before 6am on saturday", "before 6am on sunday"],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchUpdateTypes": ["patch", "minor"],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^@babel/"],
|
||||
"groupName": "babel packages"
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^eslint"],
|
||||
"groupName": "eslint packages"
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^jest"],
|
||||
"groupName": "jest packages"
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^@types/"],
|
||||
"groupName": "types packages"
|
||||
},
|
||||
{
|
||||
"matchPackagePatterns": ["^react", "^react-dom"],
|
||||
"groupName": "react packages"
|
||||
},
|
||||
{
|
||||
"matchConfidence": ["high", "very-high"],
|
||||
"dependencyDashboardApproval": false
|
||||
},
|
||||
{
|
||||
"matchConfidence": ["low", "neutral"],
|
||||
"dependencyDashboardApproval": true
|
||||
}
|
||||
],
|
||||
"vulnerabilityAlerts": {
|
||||
"labels": ["security"],
|
||||
"automerge": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user