From 08a89facb9bbc4406fc49db1d54f260931082e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 10 Oct 2024 14:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20Gitea=20=E5=92=8C=20GitHub=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=AF=B4=E6=98=8E=EF=BC=8C=E6=B7=BB=E5=8A=A0=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=EF=BC=9B=E6=9B=B4=E6=96=B0=20default.json5=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20TypeScript=20=E4=BE=9D=E8=B5=96=E7=9A=84?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 +++++++-------- default.json5 | 5 +++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b5d51fb..b7d5a57 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file diff --git a/default.json5 b/default.json5 index ffca84d..cd508a3 100644 --- a/default.json5 +++ b/default.json5 @@ -16,6 +16,11 @@ "dependencies" ], "packageRules": [ + { + "matchDepNames": ["typescript"], + "rangeStrategy": "replace", + "groupName": "typescript" + }, { "minimumReleaseAge": "7 days", "matchPackageNames": [