style: lint code
This commit is contained in:
@@ -69,14 +69,14 @@ For advanced configuration, edit `config.js`:
|
||||
module.exports = {
|
||||
platform: 'github',
|
||||
repositories: ['myorg/repo1', 'myorg/repo2'],
|
||||
|
||||
|
||||
// Schedule (cron format)
|
||||
schedule: ['before 5am on monday'],
|
||||
|
||||
|
||||
// Auto-merge settings
|
||||
automerge: true,
|
||||
automergeType: 'pr',
|
||||
|
||||
|
||||
// Package rules
|
||||
packageRules: [
|
||||
{
|
||||
@@ -84,7 +84,7 @@ module.exports = {
|
||||
automerge: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## Usage Examples
|
||||
@@ -204,9 +204,11 @@ Verify token scopes:
|
||||
|
||||
Configure rate limits in `config.js`:
|
||||
|
||||
```javascript
|
||||
prConcurrentLimit: 10,
|
||||
prHourlyLimit: 2,
|
||||
```json
|
||||
{
|
||||
"prConcurrentLimit": 10,
|
||||
"prHourlyLimit": 2
|
||||
}
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
@@ -69,14 +69,14 @@ Renovate 是一个自动化依赖更新工具,当有新版本可用时,它
|
||||
module.exports = {
|
||||
platform: 'github',
|
||||
repositories: ['myorg/repo1', 'myorg/repo2'],
|
||||
|
||||
|
||||
// 调度(cron 格式)
|
||||
schedule: ['before 5am on monday'],
|
||||
|
||||
|
||||
// 自动合并设置
|
||||
automerge: true,
|
||||
automergeType: 'pr',
|
||||
|
||||
|
||||
// 包规则
|
||||
packageRules: [
|
||||
{
|
||||
@@ -84,7 +84,7 @@ module.exports = {
|
||||
automerge: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
## 使用示例
|
||||
@@ -204,9 +204,11 @@ Renovate 支持 100 多个包管理器,包括:
|
||||
|
||||
在 `config.js` 中配置速率限制:
|
||||
|
||||
```javascript
|
||||
prConcurrentLimit: 10,
|
||||
prHourlyLimit: 2,
|
||||
```json
|
||||
{
|
||||
"prConcurrentLimit": 10,
|
||||
"prHourlyLimit": 2
|
||||
}
|
||||
```
|
||||
|
||||
## 文档
|
||||
|
||||
@@ -40,4 +40,4 @@ module.exports = {
|
||||
// labels: ['major-update'],
|
||||
// },
|
||||
// ],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ x-defaults: &defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
max-file: '3'
|
||||
|
||||
services:
|
||||
renovate:
|
||||
@@ -17,7 +17,7 @@ services:
|
||||
# Renovate runs as a scheduled job, not a continuous service
|
||||
# Use 'docker compose run --rm renovate' to execute manually
|
||||
# Or configure with cron/scheduler for periodic runs
|
||||
restart: "no"
|
||||
restart: no
|
||||
|
||||
volumes:
|
||||
# Configuration files
|
||||
@@ -87,8 +87,8 @@ services:
|
||||
memory: ${RENOVATE_MEMORY_RESERVATION:-512M}
|
||||
|
||||
# Security options
|
||||
read_only: false # Renovate needs to write to cache and clone repos
|
||||
user: "${PUID:-1000}:${PGID:-1000}"
|
||||
read_only: false # Renovate needs to write to cache and clone repos
|
||||
user: '${PUID:-1000}:${PGID:-1000}'
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
|
||||
Reference in New Issue
Block a user