0
0
mirror of https://github.com/yanhao98/renovate-example.git synced 2025-07-13 06:50:48 +08:00

更新 README.md,优化 Gitea 和 GitHub 配置说明,添加链接;更新 default.json5,新增 TypeScript 依赖的范围策略

This commit is contained in:
严浩
2024-10-10 14:11:39 +08:00
parent 82d81daf0f
commit 08a89facb9
2 changed files with 12 additions and 8 deletions

View File

@ -1,17 +1,17 @@
# Renovate
- ❗️ 注意:
- Gitea 需要在仓库的【设置】-【协作者】里增加协作者。
- GitHub 需要 https://developer.mend.io 里设置。
- Gitea 需要在仓库的【设置】-[【协作者】](https://git.1-h.cc/examples/renovate-example/settings/collaboration)里增加协作者。
- GitHub 需要 [developer.mend.io](https://developer.mend.io/github/yanhao98/renovate-example) 里设置。
### Gitea 仓库配置[^1]
1. 创建一个`Gitea`的账号。 https://git.1-h.cc/admin/users/new
2. 创建该账号的`Personal Access Token`https://git.1-h.cc/user/settings/applications
3. 到仓库的 https://git.1-h.cc/examples/renovate/settings/collaboration 里增加该账号为协作者
4. Github 的 `Token` 不需要勾选任何权限。 https://github.com/settings/tokens
1. [创建](https://git.1-h.cc/admin/users/new)一个`Gitea`的账号。
2. 创建该账号的[`Personal Access Token`](https://git.1-h.cc/user/settings/applications)。
3. 增加该账号为[协作者](https://git.1-h.cc/examples/renovate/settings/collaboration)
4. Github 的 [`Token`](https://github.com/settings/tokens) 不需要勾选任何权限。
#### 启动 Renovate
@ -46,8 +46,7 @@ services:
### 配置参考
- https://gitea.com/gitea/renovate-config
- https://github.com/vuejs/create-vue/blob/main/renovate.json
- https://github.com/unjs/renovate-config/blob/main/default.json
- https://docs.renovatebot.com/config-presets/#fetching-presets-from-an-http-server
- [Fetching presets from an HTTP server](https://docs.renovatebot.com/config-presets/#fetching-presets-from-an-http-server)
[^1]: [Gitea and Forgejo](https://docs.renovatebot.com/modules/platform/gitea)

View File

@ -16,6 +16,11 @@
"dependencies"
],
"packageRules": [
{
"matchDepNames": ["typescript"],
"rangeStrategy": "replace",
"groupName": "typescript"
},
{
"minimumReleaseAge": "7 days",
"matchPackageNames": [