diff --git a/.changelog.yml b/.changelog.yml index bfdee0c0ca..54e6e4cff0 100644 --- a/.changelog.yml +++ b/.changelog.yml @@ -5,7 +5,7 @@ repo: go-gitea/gitea service: github # Base URL for Gitea instance if using gitea service type (optional) -# Default: https://gitea.com +# Default: https://devstar.com base-url: # Changelog groups and which labeled PRs to add to each group diff --git a/.gitea/issue_template.md b/.gitea/issue_template.md index cf173a67ca..633235d7e7 100644 --- a/.gitea/issue_template.md +++ b/.gitea/issue_template.md @@ -5,7 +5,7 @@ 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://forum.gitea.com). 3. Please take a moment to check that your issue doesn't already exist. - 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq) + 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.cn/help/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> @@ -26,7 +26,7 @@ - [ ] No - Log gist: - + ## Description diff --git a/.github/ISSUE_TEMPLATE/bug-report.yaml b/.github/ISSUE_TEMPLATE/bug-report.yaml index ed29bdb4e6..3f73e20e0e 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/bug-report.yaml @@ -14,8 +14,8 @@ body: server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Make sure you are using the latest release and take a moment to check that your issue hasn't been reported before. - 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq) - 5. It's really important to provide pertinent details and logs (https://docs.gitea.com/help/support), + 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.cn/help/faq) + 5. It's really important to provide pertinent details and logs (https://docs.gitea.cn/help/support), incomplete details will be handled as an invalid report. - type: textarea id: description @@ -47,7 +47,7 @@ body: attributes: value: | It's really important to provide pertinent logs - Please read https://docs.gitea.com/administration/logging-config#collecting-logs-for-help + Please read https://docs.gitea.cn/administration/logging-config#collecting-logs-for-help In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini - type: input id: logs diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index e769873f47..676ca69cfe 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -10,7 +10,7 @@ contact_links: url: https://discourse.gitea.io about: Questions and configuration or deployment problems can also be discussed on our forum. - name: Frequently Asked Questions - url: https://docs.gitea.com/help/faq + url: https://docs.gitea.cn/help/faq about: Please check if your question isn't mentioned here. - name: Crowdin Translations url: https://crowdin.com/project/gitea diff --git a/.github/ISSUE_TEMPLATE/ui.bug-report.yaml b/.github/ISSUE_TEMPLATE/ui.bug-report.yaml index 1560879674..14a6f91b2a 100644 --- a/.github/ISSUE_TEMPLATE/ui.bug-report.yaml +++ b/.github/ISSUE_TEMPLATE/ui.bug-report.yaml @@ -13,12 +13,12 @@ body: 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. - 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.com/help/faq) + 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.cn/help/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. 6. In particular it's really important to provide pertinent logs. If you are certain that this is a javascript error, show us the javascript console. If the error appears to relate to Gitea the server you must also give us - DEBUG level logs. (See https://docs.gitea.com/administration/logging-config#collecting-logs-for-help) + DEBUG level logs. (See https://docs.gitea.cn/administration/logging-config#collecting-logs-for-help) - type: textarea id: description attributes: diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b7594a1ba7..2901da7d0b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -2,7 +2,7 @@ Please check the following: 1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports. 2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md . -3. For documentations contribution, please go to https://gitea.com/gitea/docs +3. For documentations contribution, please go to https://gitea.cn/gitea/docs 4. Describe what your pull request does and which issue you're targeting (if any). 5. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily. 6. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 60146276db..953a5bd91b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,7 +62,7 @@ ## Introduction This document explains how to contribute changes to the Gitea project. \ -It assumes you have followed the [installation instructions](https://docs.gitea.com/category/installation). \ +It assumes you have followed the [installation instructions](https://docs.gitea.cn/category/installation). \ Sensitive security-related issues should be reported to [security@gitea.io](mailto:security@gitea.io). For configuring IDEs for Gitea development, see the [contributed IDE configurations](contrib/ide/). @@ -113,7 +113,7 @@ If further discussion is needed, we encourage you to open a new issue instead an ## Building Gitea -See the [development setup instructions](https://docs.gitea.com/development/hacking-on-gitea). +See the [development setup instructions](https://docs.gitea.cn/development/hacking-on-gitea). ## Dependencies @@ -139,9 +139,9 @@ The same restrictions apply for frontend dependencies as for backend dependencie Depending on your change, please read the -- [backend development guideline](https://docs.gitea.com/contributing/guidelines-backend) -- [frontend development guideline](https://docs.gitea.com/contributing/guidelines-frontend) -- [refactoring guideline](https://docs.gitea.com/contributing/guidelines-refactoring) +- [backend development guideline](https://docs.gitea.cn/contributing/guidelines-backend) +- [frontend development guideline](https://docs.gitea.cn/contributing/guidelines-frontend) +- [refactoring guideline](https://docs.gitea.cn/contributing/guidelines-refactoring) ## Styleguide @@ -358,12 +358,12 @@ $REWRITTEN_PR_SUMMARY ## Documentation -If you add a new feature or change an existing aspect of Gitea, the documentation for that feature must be created or updated in another PR at [https://gitea.com/gitea/docs](https://gitea.com/gitea/docs). +If you add a new feature or change an existing aspect of Gitea, the documentation for that feature must be created or updated in another PR at [https://gitea.cn/gitea/docs](https://gitea.cn/gitea/docs). **The docs directory on main repository will be removed at some time. We will have a yaml file to store configuration file's meta data. After that completed, configuration documentation should be in the main repository.** ## API v1 -The API is documented by [swagger](https://gitea.com/api/swagger) and is based on [the GitHub API](https://docs.github.com/en/rest). +The API is documented by [swagger](https://devstar.com/api/swagger) and is based on [the GitHub API](https://docs.github.com/en/rest). ### GitHub API compatibility @@ -522,27 +522,27 @@ If an elected member that accepts the seat does not have 2FA configured yet, the - 2024-01-01 ~ 2024-12-31 - Company - - [Jason Song](https://gitea.com/wolfogre) - - [Lunny Xiao](https://gitea.com/lunny) - - [Matti Ranta](https://gitea.com/techknowlogick) + - [Jason Song](https://gitea.cn/wolfogre) + - [Lunny Xiao](https://gitea.cn/lunny) + - [Matti Ranta](https://gitea.cn/techknowlogick) - Community - - [6543](https://gitea.com/6543) <6543@obermui.de> - - [delvh](https://gitea.com/delvh) - - [John Olheiser](https://gitea.com/jolheiser) + - [6543](https://gitea.cn/6543) <6543@obermui.de> + - [delvh](https://gitea.cn/delvh) + - [John Olheiser](https://gitea.cn/jolheiser) ### Previous TOC/owners members Here's the history of the owners and the time they served: -- [Lunny Xiao](https://gitea.com/lunny) - 2016, 2017, [2018](https://github.com/go-gitea/gitea/issues/3255), [2019](https://github.com/go-gitea/gitea/issues/5572), [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801), [2022](https://github.com/go-gitea/gitea/issues/17872), 2023 +- [Lunny Xiao](https://gitea.cn/lunny) - 2016, 2017, [2018](https://github.com/go-gitea/gitea/issues/3255), [2019](https://github.com/go-gitea/gitea/issues/5572), [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801), [2022](https://github.com/go-gitea/gitea/issues/17872), 2023 - [Kim Carlbäcker](https://github.com/bkcsoft) - 2016, 2017 -- [Thomas Boerger](https://gitea.com/tboerger) - 2016, 2017 -- [Lauris Bukšis-Haberkorns](https://gitea.com/lafriks) - [2018](https://github.com/go-gitea/gitea/issues/3255), [2019](https://github.com/go-gitea/gitea/issues/5572), [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801) -- [Matti Ranta](https://gitea.com/techknowlogick) - [2019](https://github.com/go-gitea/gitea/issues/5572), [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801), [2022](https://github.com/go-gitea/gitea/issues/17872), 2023 -- [Andrew Thornton](https://gitea.com/zeripath) - [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801), [2022](https://github.com/go-gitea/gitea/issues/17872), 2023 -- [6543](https://gitea.com/6543) - 2023 -- [John Olheiser](https://gitea.com/jolheiser) - 2023 -- [Jason Song](https://gitea.com/wolfogre) - 2023 +- [Thomas Boerger](https://gitea.cn/tboerger) - 2016, 2017 +- [Lauris Bukšis-Haberkorns](https://gitea.cn/lafriks) - [2018](https://github.com/go-gitea/gitea/issues/3255), [2019](https://github.com/go-gitea/gitea/issues/5572), [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801) +- [Matti Ranta](https://gitea.cn/techknowlogick) - [2019](https://github.com/go-gitea/gitea/issues/5572), [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801), [2022](https://github.com/go-gitea/gitea/issues/17872), 2023 +- [Andrew Thornton](https://gitea.cn/zeripath) - [2020](https://github.com/go-gitea/gitea/issues/9230), [2021](https://github.com/go-gitea/gitea/issues/13801), [2022](https://github.com/go-gitea/gitea/issues/17872), 2023 +- [6543](https://gitea.cn/6543) - 2023 +- [John Olheiser](https://gitea.cn/jolheiser) - 2023 +- [Jason Song](https://gitea.cn/wolfogre) - 2023 ## Governance Compensation @@ -599,7 +599,7 @@ be reviewed by two maintainers and must pass the automatic tests. - Add a tag as `git tag -s -F release.notes v$vmaj.$vmin.$`, release.notes file could be a temporary file to only include the changelog this version which you added to `CHANGELOG.md`. - And then push the tag as `git push origin v$vmaj.$vmin.$`. Drone CI will automatically create a release and upload all the compiled binary. (But currently it doesn't add the release notes automatically. Maybe we should fix that.) - If needed send a frontport PR for the changelog to branch `main` and update the version in `docs/config.yaml` to refer to the new version. -- Send PR to [blog repository](https://gitea.com/gitea/blog) announcing the release. +- Send PR to [blog repository](https://gitea.cn/gitea/blog) announcing the release. - Verify all release assets were correctly published through CI on dl.gitea.com and GitHub releases. Once ACKed: - bump the version of https://dl.gitea.com/gitea/version.json - merge the blog post PR diff --git a/build/test-env-check.sh b/build/test-env-check.sh index 38e5a28823..7699ce2c03 100755 --- a/build/test-env-check.sh +++ b/build/test-env-check.sh @@ -10,7 +10,7 @@ fi echo "check uid ..." -# the uid of gitea defined in "https://gitea.com/gitea/test-env" is 1000 +# the uid of gitea defined in "https://gitea.cn/gitea/test-env" is 1000 gitea_uid=$(id -u gitea) if [ "$gitea_uid" != "1000" ]; then echo "The uid of linux user 'gitea' is expected to be 1000, but it is $gitea_uid" diff --git a/cmd/dump_repo.go b/cmd/dump_repo.go index 3a24cf6c5f..a7d19db3ec 100644 --- a/cmd/dump_repo.go +++ b/cmd/dump_repo.go @@ -108,7 +108,7 @@ func runDumpRepository(ctx *cli.Context) error { serviceStr = "github" } else if strings.HasPrefix(strings.ToLower(cloneAddr), "https://gitlab.com/") { serviceStr = "gitlab" - } else if strings.HasPrefix(strings.ToLower(cloneAddr), "https://gitea.com/") { + } else if strings.HasPrefix(strings.ToLower(cloneAddr), "https://devstar.cn/") { serviceStr = "gitea" } if serviceStr == "" { diff --git a/contrib/gitea-monitoring-mixin/config.libsonnet b/contrib/gitea-monitoring-mixin/config.libsonnet index 446fc09a41..0a94a62c9f 100644 --- a/contrib/gitea-monitoring-mixin/config.libsonnet +++ b/contrib/gitea-monitoring-mixin/config.libsonnet @@ -7,7 +7,7 @@ dashboardTimezone: 'default', dashboardRefresh: '1m', - // please see https://docs.gitea.com/administration/config-cheat-sheet#metrics-metrics + // please see https://docs.gitea.cn/administration/config-cheat-sheet#metrics-metrics // Show issue by repository metrics with format gitea_issues_by_repository{repository="org/repo"} 5. // Requires Gitea 1.16.0 with ENABLED_ISSUE_BY_REPOSITORY set to true. showIssuesByRepository: true, diff --git a/contrib/legal/privacy.html.sample b/contrib/legal/privacy.html.sample index 50972b2a3e..69dddfa068 100644 --- a/contrib/legal/privacy.html.sample +++ b/contrib/legal/privacy.html.sample @@ -37,7 +37,7 @@

With your Consent

-

We share your User Personal Information, if you consent, after letting you know what information will be shared, with whom, and why. For example, if you allow third party applications to access your Account using OAuth2 providers, we share all information associated with your Account, including private repos and organizations. You may also direct us through your action on Your Gitea Instance to share your User Personal Information, such as when joining an Organization.

+

We share your User Personal Information, if you consent, after letting you know what information will be shared, with whom, and why. For example, if you allow third party applications to access your Account using OAuth2 providers, we share all information associated with your Account, including private repos and organizations. You may also direct us through your action on Your Gitea Instance to share your User Personal Information, such as when joining an Organization.

With Service Providers

@@ -144,7 +144,7 @@

Data Portability

-

As a Your Gitea Instance User, you can always take your data with you. You can clone your repositories to your computer, or you can perform migrations using the provided interfaces, for example.

+

As a Your Gitea Instance User, you can always take your data with you. You can clone your repositories to your computer, or you can perform migrations using the provided interfaces, for example.

Data Retention and Deletion of Data

diff --git a/docker/README.md b/docker/README.md index b014f42367..68f5d941c8 100644 --- a/docker/README.md +++ b/docker/README.md @@ -4,4 +4,4 @@ Dockerfile is found in the root of the repository. Docker image can be found on [docker hub](https://hub.docker.com/r/gitea/gitea). -Documentation on using docker image can be found on [Gitea Docs site](https://docs.gitea.com/installation/install-with-docker-rootless). +Documentation on using docker image can be found on [Gitea Docs site](https://docs.gitea.cn/installation/install-with-docker-rootless). diff --git a/docs/README.md b/docs/README.md index 38958525ba..acca82dcfa 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ # Gitea: Docs -These docs are ingested by our [docs repo](https://gitea.com/gitea/gitea-docusaurus). +These docs are ingested by our [docs repo](https://gitea.cn/gitea/gitea-docusaurus). ## Authors diff --git a/docs/README_ZH.md b/docs/README_ZH.md index deff4b5fc7..446600a2b7 100644 --- a/docs/README_ZH.md +++ b/docs/README_ZH.md @@ -1,6 +1,6 @@ # Gitea: 文档 -https://gitea.com/gitea/gitea-docusaurus +https://gitea.cn/gitea/gitea-docusaurus ## 关于我们 diff --git a/docs/content/administration/config-cheat-sheet.en-us.md b/docs/content/administration/config-cheat-sheet.en-us.md index 002ab0aec8..85eaad046b 100644 --- a/docs/content/administration/config-cheat-sheet.en-us.md +++ b/docs/content/administration/config-cheat-sheet.en-us.md @@ -1457,10 +1457,10 @@ Please note that using `self` is not recommended for most cases, as it could mak Additionally, it requires you to mirror all the actions you need to your Gitea instance, which may not be worth it. Therefore, please use `self` only if you understand what you are doing. -In earlier versions (`<= 1.19`), `DEFAULT_ACTIONS_URL` could be set to any custom URLs like `https://gitea.com` or `http://your-git-server,https://gitea.com`, and the default value was `https://gitea.com`. +In earlier versions (`<= 1.19`), `DEFAULT_ACTIONS_URL` could be set to any custom URLs like `https://devstar.cn` or `http://your-git-server,https://gitea.cn`, and the default value was `https://devstar.cn`. However, later updates removed those options, and now the only options are `github` and `self`, with the default value being `github`. However, if you want to use actions from other git server, you can use a complete URL in `uses` field, it's supported by Gitea (but not GitHub). -Like `uses: https://gitea.com/actions/checkout@v4` or `uses: http://your-git-server/actions/checkout@v4`. +Like `uses: https://gitea.cn/actions/checkout@v4` or `uses: http://your-git-server/actions/checkout@v4`. ## Other (`other`) diff --git a/docs/content/administration/config-cheat-sheet.zh-cn.md b/docs/content/administration/config-cheat-sheet.zh-cn.md index 0019d9d86f..34dbb4d9a9 100644 --- a/docs/content/administration/config-cheat-sheet.zh-cn.md +++ b/docs/content/administration/config-cheat-sheet.zh-cn.md @@ -1347,10 +1347,10 @@ PROXY_HOSTS = *.github.com 此外,它要求您将所有所需的操作镜像到您的 Gitea 实例,这可能不值得。 因此,请仅在您了解自己在做什么的情况下使用 `self`。 -在早期版本(`<= 1.19`)中,`DEFAULT_ACTIONS_URL` 可以设置为任何自定义 URL,例如 `https://gitea.com` 或 `http://your-git-server,https://gitea.com`,默认值为 `https://gitea.com`。 +在早期版本(`<= 1.19`)中,`DEFAULT_ACTIONS_URL` 可以设置为任何自定义 URL,例如 `https://devstar.cn` 或 `http://your-git-server,https://gitea.cn`,默认值为 `https://gitea.cn`。 然而,后来的更新删除了这些选项,现在唯一的选项是 `github` 和 `self`,默认值为 `github`。 但是,如果您想要使用其他 Git 服务器中的操作,您可以在 `uses` 字段中使用完整的 URL,Gitea 支持此功能(GitHub 不支持)。 -例如 `uses: https://gitea.com/actions/checkout@v4` 或 `uses: http://your-git-server/actions/checkout@v4`。 +例如 `uses: https://devstar.cn/actions/checkout@v4` 或 `uses: http://your-git-server/actions/checkout@v4`。 ## 其他 (`other`) diff --git a/docs/content/administration/customizing-gitea.en-us.md b/docs/content/administration/customizing-gitea.en-us.md index 8475f6d131..4433d5d01e 100644 --- a/docs/content/administration/customizing-gitea.en-us.md +++ b/docs/content/administration/customizing-gitea.en-us.md @@ -142,7 +142,7 @@ You can add [PlantUML](https://plantuml.com/) support to Gitea's markdown by usi The data is encoded and sent to the PlantUML server which generates the picture. There is an online demo server at http://www.plantuml.com/plantuml, but if you (or your users) have sensitive data you can set up your own [PlantUML server](https://plantuml.com/server) instead. To set up PlantUML rendering, -copy JavaScript files from https://gitea.com/davidsvantesson/plantuml-code-highlight and put them in your +copy JavaScript files from https://gitea.cn/davidsvantesson/plantuml-code-highlight and put them in your `$GITEA_CUSTOM/public/assets/` folder. Then add the following to `custom/footer.tmpl`: ```html @@ -366,7 +366,7 @@ To change reaction emoji's you can set allowed reactions at app.ini REACTIONS = +1, -1, laugh, confused, heart, hooray, eyes ``` -A full list of supported emoji's is at [emoji list](https://gitea.com/gitea/gitea.com/issues/8) +A full list of supported emoji's is at [emoji list](https://gitea.cn/gitea/gitea.com/issues/8) ## Customizing the look of Gitea @@ -383,7 +383,7 @@ To make a custom theme available to all users: The value of `$GITEA_CUSTOM` of your instance can be queried by calling `gitea help` and looking up the value of "CustomPath". 2. Add `` to the comma-separated list of setting `THEMES` in `app.ini`, or leave `THEMES` empty to allow all themes. -Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.com/gitea/awesome-gitea#themes). +Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.cn/gitea/awesome-gitea#themes). The default theme sources can be found [here](https://github.com/go-gitea/gitea/blob/main/web_src/css/themes). diff --git a/docs/content/development/api-usage.en-us.md b/docs/content/development/api-usage.en-us.md index 4fe376b11b..e3e97c108b 100644 --- a/docs/content/development/api-usage.en-us.md +++ b/docs/content/development/api-usage.en-us.md @@ -117,7 +117,7 @@ curl -v "http://localhost/api/v1/repos/search?limit=1" API Reference guide is auto-generated by swagger and available on: `https://gitea.your.host/api/swagger` or on the -[Gitea instance](https://gitea.com/api/swagger) +[Gitea instance](https://devstar.cn/api/swagger) The OpenAPI document is at: `https://gitea.your.host/swagger.v1.json` @@ -128,5 +128,5 @@ The API allows admin users to sudo API requests as another user. Simply add eith ## SDKs -- [Official go-sdk](https://gitea.com/gitea/go-sdk) -- [more](https://gitea.com/gitea/awesome-gitea#user-content-sdk) +- [Official go-sdk](https://gitea.cn/gitea/go-sdk) +- [more](https://gitea.cn/gitea/awesome-gitea#user-content-sdk) diff --git a/docs/content/development/integrations.en-us.md b/docs/content/development/integrations.en-us.md index 66ea36243b..a3e3b2d715 100644 --- a/docs/content/development/integrations.en-us.md +++ b/docs/content/development/integrations.en-us.md @@ -20,12 +20,12 @@ menu: Gitea has a wonderful community of third-party integrations, as well as first-class support in various other projects. -We are curating a list over at [awesome-gitea](https://gitea.com/gitea/awesome-gitea) to track these! +We are curating a list over at [awesome-gitea](https://gitea.cn/gitea/awesome-gitea) to track these! -If you are looking for [CI/CD](https://gitea.com/gitea/awesome-gitea#user-content-devops), -an [SDK](https://gitea.com/gitea/awesome-gitea#user-content-sdk), -or even some extra [themes](https://gitea.com/gitea/awesome-gitea#user-content-themes), -you can find them listed in the [awesome-gitea](https://gitea.com/gitea/awesome-gitea) repository! +If you are looking for [CI/CD](https://gitea.cn/gitea/awesome-gitea#user-content-devops), +an [SDK](https://gitea.cn/gitea/awesome-gitea#user-content-sdk), +or even some extra [themes](https://gitea.cn/gitea/awesome-gitea#user-content-themes), +you can find them listed in the [awesome-gitea](https://gitea.cn/gitea/awesome-gitea) repository! ## Pre-Fill New File name and contents diff --git a/docs/content/development/integrations.zh-cn.md b/docs/content/development/integrations.zh-cn.md index 0b8ca0d5a0..f09ce706dc 100644 --- a/docs/content/development/integrations.zh-cn.md +++ b/docs/content/development/integrations.zh-cn.md @@ -19,12 +19,12 @@ menu: Gitea拥有一个出色的第三方集成社区,以及在其他各种项目中的一流支持。 -我们正在[awesome-gitea](https://gitea.com/gitea/awesome-gitea)上整理一个列表来跟踪这些集成! +我们正在[awesome-gitea](https://gitea.cn/gitea/awesome-gitea)上整理一个列表来跟踪这些集成! -如果你正在寻找[CI/CD](https://gitea.com/gitea/awesome-gitea#user-content-devops), -一个[SDK](https://gitea.com/gitea/awesome-gitea#user-content-sdk), -甚至一些额外的[主题](https://gitea.com/gitea/awesome-gitea#user-content-themes), -你可以在[awesome-gitea](https://gitea.com/gitea/awesome-gitea)中找到它们的列表! +如果你正在寻找[CI/CD](https://gitea.cn/gitea/awesome-gitea#user-content-devops), +一个[SDK](https://gitea.cn/gitea/awesome-gitea#user-content-sdk), +甚至一些额外的[主题](https://gitea.cn/gitea/awesome-gitea#user-content-themes), +你可以在[awesome-gitea](https://gitea.cn/gitea/awesome-gitea)中找到它们的列表! ## 预填新文件名和内容 diff --git a/docs/content/development/oauth2-provider.en-us.md b/docs/content/development/oauth2-provider.en-us.md index 54674f9246..dbc81b7606 100644 --- a/docs/content/development/oauth2-provider.en-us.md +++ b/docs/content/development/oauth2-provider.en-us.md @@ -86,7 +86,7 @@ Gitea creates OAuth applications for the following services by default on startu |-----------|-----------|---------| |[git-credential-oauth](https://github.com/hickford/git-credential-oauth)|Git credential helper|`a4792ccc-144e-407e-86c9-5e7d8d9c3269`| |[Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager)|Git credential helper|`e90ee53c-94e2-48ac-9358-a874fb9e0662`| -|[tea](https://gitea.com/gitea/tea)|tea|`d57cb8c4-630c-4168-8324-ec79935e18d4`| +|[tea](https://gitea.cn/gitea/tea)|tea|`d57cb8c4-630c-4168-8324-ec79935e18d4`| To prevent unexpected behavior, they are being displayed as locked in the UI and their creation can instead be controlled by the `DEFAULT_APPLICATIONS` parameter in `app.ini`. diff --git a/docs/content/help/faq.en-us.md b/docs/content/help/faq.en-us.md index e94f342198..15a4f3117f 100644 --- a/docs/content/help/faq.en-us.md +++ b/docs/content/help/faq.en-us.md @@ -137,9 +137,9 @@ All Gitea instances have the built-in API and there is no way to disable it comp You can, however, disable showing its documentation by setting `ENABLE_SWAGGER` to `false` in the `api` section of your `app.ini`. For more information, refer to Gitea's [API docs](development/api-usage.md). -You can see the latest API (for example) on https://gitea.com/api/swagger +You can see the latest API (for example) on https://devstar.cn/api/swagger -You can also see an example of the `swagger.json` file at https://gitea.com/swagger.v1.json +You can also see an example of the `swagger.json` file at https://devstar.cn/swagger.v1.json ## Adjusting your server for public/private use diff --git a/docs/content/help/faq.zh-cn.md b/docs/content/help/faq.zh-cn.md index d24dfe24a2..7a0ce94b58 100644 --- a/docs/content/help/faq.zh-cn.md +++ b/docs/content/help/faq.zh-cn.md @@ -141,9 +141,9 @@ Gitea不提供内置的Pages服务器。您需要一个专用的域名来提供 但是,您可以在app.ini的api部分将ENABLE_SWAGGER设置为false,以禁用其文档显示。 有关更多信息,请参阅Gitea的[API文档](development/api-usage.md)。 -您可以在上查看最新的API(例如)https://gitea.com/api/swagger +您可以在上查看最新的API(例如)https://devstar.cn/api/swagger -您还可以在上查看`swagger.json`文件的示例 https://gitea.com/swagger.v1.json +您还可以在上查看`swagger.json`文件的示例 https://devstar.cn/swagger.v1.json ## 调整服务器用于公共/私有使用 diff --git a/docs/content/index.en-us.md b/docs/content/index.en-us.md index dc2eb1472a..49bde47e98 100644 --- a/docs/content/index.en-us.md +++ b/docs/content/index.en-us.md @@ -45,7 +45,7 @@ You can try it out using [the online demo](https://demo.gitea.com). - Multilingual Support: Gitea provides interfaces in multiple languages, catering to users globally and promoting internationalization and localization. -Additional Features: For more detailed information, please refer to: https://docs.gitea.com/installation/comparison#general-features +Additional Features: For more detailed information, please refer to: https://docs.gitea.cn/installation/comparison#general-features ## System Requirements @@ -83,4 +83,4 @@ Additional Features: For more detailed information, please refer to: https://doc ## Integrated support - Please visit [Awesome Gitea](https://gitea.com/gitea/awesome-gitea/) to get more third-party integrated support + Please visit [Awesome Gitea](https://gitea.cn/gitea/awesome-gitea/) to get more third-party integrated support diff --git a/docs/content/index.zh-cn.md b/docs/content/index.zh-cn.md index 3cec5b396e..70a5e387bb 100644 --- a/docs/content/index.zh-cn.md +++ b/docs/content/index.zh-cn.md @@ -36,7 +36,7 @@ Gitea的首要目标是创建一个极易安装,运行非常快速,安装和 - 开源社区支持: Gitea 是一个基于 MIT 许可证的开源项目,Gitea 拥有一个活跃的开源社区,能够持续地进行开发和改进,同时也积极接受社区贡献,保持了平台的更新和创新。 - 多语言支持: Gitea 提供多种语言界面,适应全球范围内的用户,促进了国际化和本地化。 -更多功能特性:详见:https://docs.gitea.com/installation/comparison#general-features +更多功能特性:详见:https://docs.gitea.cn/installation/comparison#general-features ## 系统要求 @@ -74,4 +74,4 @@ Gitea的首要目标是创建一个极易安装,运行非常快速,安装和 ## 集成支持 -请访问 [Awesome Gitea](https://gitea.com/gitea/awesome-gitea/) 获得更多的第三方集成支持 +请访问 [Awesome Gitea](https://gitea.cn/gitea/awesome-gitea/) 获得更多的第三方集成支持 diff --git a/docs/content/installation/from-binary.zh-cn.md b/docs/content/installation/from-binary.zh-cn.md index 216a6be51e..5724c038cf 100644 --- a/docs/content/installation/from-binary.zh-cn.md +++ b/docs/content/installation/from-binary.zh-cn.md @@ -209,6 +209,6 @@ remote: ./hooks/pre-receive.d/gitea: line 2: [...]: No such file or directory 如果您没有使用 Gitea 内置的 SSH 服务器,您还需要通过在管理选项中运行任务 `Update the '.ssh/authorized_keys' file with Gitea SSH keys.` 来重新编写授权密钥文件。 -> 更多经验总结,请参考英文版 [Troubleshooting](https://docs.gitea.com/installation/install-from-binary#troubleshooting) +> 更多经验总结,请参考英文版 [Troubleshooting](https://docs.gitea.cn/installation/install-from-binary#troubleshooting) 如果从本页中没有找到你需要的内容,请访问 [帮助页面](help/support.md) diff --git a/docs/content/installation/from-package.en-us.md b/docs/content/installation/from-package.en-us.md index aceb2029d2..ff2786dad5 100644 --- a/docs/content/installation/from-package.en-us.md +++ b/docs/content/installation/from-package.en-us.md @@ -113,6 +113,6 @@ To enable Gitea to run as a service, run `sysrc gitea_enable=YES` and start it w ### Others Various other third-party packages of Gitea exist. -To see a curated list, head over to [awesome-gitea](https://gitea.com/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages). +To see a curated list, head over to [awesome-gitea](https://gitea.cn/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages). Do you know of an existing package that isn't on the list? Send in a PR to get it added! diff --git a/docs/content/installation/from-package.zh-cn.md b/docs/content/installation/from-package.zh-cn.md index 929782f23c..2dc78c6352 100644 --- a/docs/content/installation/from-package.zh-cn.md +++ b/docs/content/installation/from-package.zh-cn.md @@ -106,6 +106,6 @@ make install clean ## 第三方 -如果这里没有找到你喜欢的包管理器,可以使用 Gitea 第三方软件包。这里有一个完整的列表: [awesome-gitea](https://gitea.com/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages)。 +如果这里没有找到你喜欢的包管理器,可以使用 Gitea 第三方软件包。这里有一个完整的列表: [awesome-gitea](https://gitea.cn/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages)。 如果你知道其他 Gitea 第三方软件包,请发送 PR 来添加它。 diff --git a/docs/content/installation/on-kubernetes.en-us.md b/docs/content/installation/on-kubernetes.en-us.md index d5fc4183db..39215d9ef8 100644 --- a/docs/content/installation/on-kubernetes.en-us.md +++ b/docs/content/installation/on-kubernetes.en-us.md @@ -26,7 +26,7 @@ helm repo add gitea-charts https://dl.gitea.com/charts/ helm install gitea gitea-charts/gitea ``` -If you would like to customize your install, which includes kubernetes ingress, please refer to the complete [Gitea helm chart configuration details](https://gitea.com/gitea/helm-chart/) +If you would like to customize your install, which includes kubernetes ingress, please refer to the complete [Gitea helm chart configuration details](https://gitea.cn/gitea/helm-chart/) ## Health check endpoint diff --git a/docs/content/installation/on-kubernetes.zh-cn.md b/docs/content/installation/on-kubernetes.zh-cn.md index 393af7ab6a..04e8b261ee 100644 --- a/docs/content/installation/on-kubernetes.zh-cn.md +++ b/docs/content/installation/on-kubernetes.zh-cn.md @@ -1,6 +1,6 @@ ### Kubernetes 集群部署 -DevStar Studio 在 Kubernetes集群中部署需要使用 Helm Charts,可参考 [官方示例](https://gitea.com/gitea/helm-chart) 。 +DevStar Studio 在 Kubernetes集群中部署需要使用 Helm Charts,可参考 [官方示例](https://gitea.cn/gitea/helm-chart) 。 推荐将 DevStar Studio 与 Dev Container 进行基于 namespace 的资源 **隔离**: *由于 k8s RBAC 限制,建议将 DevStar Studio 的主应用程序,数据库和缓存 与 Dev Container 部署在同一个 namespace 下* @@ -307,7 +307,7 @@ helm repo update helm install gitea gitea/gitea ``` -如果采用默认安装指令,Helm 会部署单实例的 Gitea, PostgreSQL, Memcached。若您想实现自定义安装(包括配置 Gitea 集群、NGINX Ingress、MySQL、MariaDB、持久存储等),请前往阅读:[Gitea Helm Chart](https://gitea.com/gitea/helm-chart/) +如果采用默认安装指令,Helm 会部署单实例的 Gitea, PostgreSQL, Memcached。若您想实现自定义安装(包括配置 Gitea 集群、NGINX Ingress、MySQL、MariaDB、持久存储等),请前往阅读:[Gitea Helm Chart](https://gitea.cn/gitea/helm-chart/) 您也可以通过 `helm show` 命令导出 `README.md` 和配置文件 `values.yaml` 进行学习和编辑,例如: diff --git a/docs/content/installation/upgrade-from-gitea.zh-cn.md b/docs/content/installation/upgrade-from-gitea.zh-cn.md index 6300917e2d..ed34cf7d64 100644 --- a/docs/content/installation/upgrade-from-gitea.zh-cn.md +++ b/docs/content/installation/upgrade-from-gitea.zh-cn.md @@ -26,7 +26,7 @@ menu: ## 在控制面板中检查过期的配置项 一些配置项可能会在后续版本中过期,你需要在控制面板中检查他们。如果不解决过期的配置项, -Gitea也许会在升级后无法重启。你可以访问 https://docs.gitea.com 获得要升级的版本 +Gitea也许会在升级后无法重启。你可以访问 https://docs.gitea.cn 获得要升级的版本 对应的文档来修改你的配置文件。 ## 降级前的备份 diff --git a/docs/content/usage/actions/act-runner.en-us.md b/docs/content/usage/actions/act-runner.en-us.md index 942d126919..14fc7d783c 100644 --- a/docs/content/usage/actions/act-runner.en-us.md +++ b/docs/content/usage/actions/act-runner.en-us.md @@ -15,7 +15,7 @@ menu: # Act Runner -This page will introduce the [act runner](https://gitea.com/gitea/act_runner) in detail, which is the runner of Gitea Actions. +This page will introduce the [act runner](https://gitea.cn/gitea/act_runner) in detail, which is the runner of Gitea Actions. ## Requirements @@ -32,7 +32,7 @@ There are multiple ways to install the act runner. ### Download the binary -You can download the binary from the [release page](https://gitea.com/gitea/act_runner/releases). +You can download the binary from the [release page](https://gitea.cn/gitea/act_runner/releases). However, if you want to use the latest nightly build, you can download it from the [download page](https://dl.gitea.com/act_runner/). When you download the binary, please make sure that you have downloaded the correct one for your platform. @@ -138,7 +138,7 @@ Alternatively, you can use the `--config` option to specify the configuration fi You will be asked to input the registration information step by step. Includes: -- The Gitea instance URL, like `https://gitea.com/` or `http://192.168.8.8:3000/`. +- The Gitea instance URL, like `https://devstar.cn/` or `http://192.168.8.8:3000/`. - The registration token. - The runner name, which is optional. If you leave it blank, the hostname will be used. - The runner labels, which is optional. If you leave it blank, the default labels will be used. @@ -277,7 +277,7 @@ It is also possible to run act-runner as a [systemd](https://en.wikipedia.org/wi ```ini [Unit] Description=Gitea Actions runner -Documentation=https://gitea.com/gitea/act_runner +Documentation=https://gitea.cn/gitea/act_runner After=docker.service [Service] diff --git a/docs/content/usage/actions/act-runner.zh-cn.md b/docs/content/usage/actions/act-runner.zh-cn.md index e5ebff976d..ec1570a6f2 100644 --- a/docs/content/usage/actions/act-runner.zh-cn.md +++ b/docs/content/usage/actions/act-runner.zh-cn.md @@ -15,7 +15,7 @@ menu: # Act Runner -本页面将详细介绍[Act Runner](https://gitea.com/gitea/act_runner),这是Gitea Actions的Runner。 +本页面将详细介绍[Act Runner](https://gitea.cn/gitea/act_runner),这是Gitea Actions的Runner。 ## 要求 @@ -32,7 +32,7 @@ menu: ### 下载二进制文件 -您可以从[发布页面](https://gitea.com/gitea/act_runner/releases)下载二进制文件。 +您可以从[发布页面](https://gitea.cn/gitea/act_runner/releases)下载二进制文件。 然而,如果您想使用最新的夜间构建版本,可以从[下载页面](https://dl.gitea.com/act_runner/)下载。 下载二进制文件时,请确保您已经下载了适用于您的平台的正确版本。 @@ -131,7 +131,7 @@ Runner级别决定了从哪里获取注册令牌。 您将逐步输入注册信息,包括: -- Gitea 实例的 URL,例如 `https://gitea.com/` 或 `http://192.168.8.8:3000/`。 +- Gitea 实例的 URL,例如 `https://devstar.cn/` 或 `http://192.168.8.8:3000/`。 - 注册令牌。 - Runner名称(可选)。如果留空,将使用主机名。 - Runner标签(可选)。如果留空,将使用默认标签。 diff --git a/docs/content/usage/actions/comparison.en-us.md b/docs/content/usage/actions/comparison.en-us.md index 5b084e09c4..b8bea8036e 100644 --- a/docs/content/usage/actions/comparison.en-us.md +++ b/docs/content/usage/actions/comparison.en-us.md @@ -91,7 +91,7 @@ See [Expressions](https://docs.github.com/en/actions/learn-github-actions/expres Gitea Actions doesn't support it now, if you use it, the result will always be empty string. -As a workaround, you can use [go-hashfiles](https://gitea.com/actions/go-hashfiles) instead. +As a workaround, you can use [go-hashfiles](https://gitea.cn/actions/go-hashfiles) instead. ## Missing features @@ -126,12 +126,12 @@ Services steps don't have their own section in the job log user interface. ### Downloading actions -Previously (Pre 1.21.0), `[actions].DEFAULT_ACTIONS_URL` defaulted to `https://gitea.com`. +Previously (Pre 1.21.0), `[actions].DEFAULT_ACTIONS_URL` defaulted to `https://gitea.cn`. We have since restricted this option to only allow two values (`github` and `self`). When set to `github`, the new default, Gitea will download non-fully-qualified actions from `https://github.com`. For example, if you use `uses: actions/checkout@v4`, it will download the checkout repository from `https://github.com/actions/checkout.git`. -If you want to download an action from another git hoster, you can use an absolute URL, e.g. `uses: https://gitea.com/actions/checkout@v4`. +If you want to download an action from another git hoster, you can use an absolute URL, e.g. `uses: https://gitea.cn/actions/checkout@v4`. If your Gitea instance is in an intranet or a restricted area, you can set the URL to `self` to only download actions from your own instance by default. Of course, you can still use absolute URLs in workflows. diff --git a/docs/content/usage/actions/comparison.zh-cn.md b/docs/content/usage/actions/comparison.zh-cn.md index 79450e8eab..f303826532 100644 --- a/docs/content/usage/actions/comparison.zh-cn.md +++ b/docs/content/usage/actions/comparison.zh-cn.md @@ -91,7 +91,7 @@ Gitea Actions目前不支持此功能。 Gitea Actions目前不支持此功能,如果使用它,结果将始终为空字符串。 -作为解决方法,您可以使用[go-hashfiles](https://gitea.com/actions/go-hashfiles)。 +作为解决方法,您可以使用[go-hashfiles](https://gitea.cn/actions/go-hashfiles)。 ## 缺失的功能 @@ -128,7 +128,7 @@ Gitea Actions目前不支持此功能。 当 `[actions].DEFAULT_ACTIONS_URL` 保持默认值为 `github` 时,Gitea将会从 https://github.com 下载相对路径的actions。比如: 如果你使用 `uses: actions/checkout@v4`,Gitea将会从 https://github.com/actions/checkout.git 下载这个 actions 项目。 -如果你想要从另外一个 Git服务下载actions,你只需要使用绝对URL `uses: https://gitea.com/actions/checkout@v4` 来下载。 +如果你想要从另外一个 Git服务下载actions,你只需要使用绝对URL `uses: https://gitea.cn/actions/checkout@v4` 来下载。 如果你的 Gitea 实例是部署在一个互联网限制的网络中,也可以使用绝对地址来下载 actions。你也可以将配置项修改为 `[actions].DEFAULT_ACTIONS_URL = self`。这样所有的相对路径的actions引用,将不再会从 github.com 去下载,而会从这个 Gitea 实例自己的仓库中去下载。例如: `uses: actions/checkout@v4` 将会从 `[server].ROOT_URL`/actions/checkout.git 这个地址去下载 actions。 diff --git a/docs/content/usage/actions/design.en-us.md b/docs/content/usage/actions/design.en-us.md index 0d72c19dce..21f204a4a1 100644 --- a/docs/content/usage/actions/design.en-us.md +++ b/docs/content/usage/actions/design.en-us.md @@ -23,7 +23,7 @@ The [nektos/act](https://github.com/nektos/act) project is an excellent tool tha We were inspired by this and wondered if it would be possible to run actions for Gitea. However, while [nektos/act](https://github.com/nektos/act) is designed as a command line tool, what we actually needed was a Go library with modifications specifically for Gitea. -So we forked it as [gitea/act](https://gitea.com/gitea/act). +So we forked it as [gitea/act](https://gitea.cn/gitea/act). This is a soft fork that will periodically follow the upstream. Although some custom commits have been added, we will try our best to avoid changing too much of the original code. @@ -76,7 +76,7 @@ However, we did not think it was a good idea to have Gitea listen on a new port. Instead, we wanted to reuse the HTTP port, which means we needed a protocol that is compatible with HTTP. We chose to use gRPC over HTTP. -We use [actions-proto-def](https://gitea.com/gitea/actions-proto-def) and [actions-proto-go](https://gitea.com/gitea/actions-proto-go) to wire them up. +We use [actions-proto-def](https://gitea.cn/gitea/actions-proto-def) and [actions-proto-go](https://gitea.cn/gitea/actions-proto-go) to wire them up. More information about gRPC can be found on [its website](https://grpc.io/). ## Network architecture diff --git a/docs/content/usage/actions/design.zh-cn.md b/docs/content/usage/actions/design.zh-cn.md index f48576477f..e19836af5e 100644 --- a/docs/content/usage/actions/design.zh-cn.md +++ b/docs/content/usage/actions/design.zh-cn.md @@ -23,7 +23,7 @@ Gitea Actions由多个组件组成。本文档将对它们进行逐个描述。 我们受到了它的启发,并思考它是否可能为Gitea运行Actions。 然而,尽管[nektos/act](https://github.com/nektos/act)被设计为一个命令行工具,但我们实际上需要的是一个专为Gitea修改的Go库。 -因此,我们在[gitea/act](https://gitea.com/gitea/act)基础上进行了分叉。 +因此,我们在[gitea/act](https://gitea.cn/gitea/act)基础上进行了分叉。 这是一个软分叉,将定期跟进上游。 虽然添加了一些自定义提交,但我们会尽力避免对原始代码进行太多更改。 @@ -77,7 +77,7 @@ act 也支持直接在主机上运行Job。 相反,我们希望重用HTTP端口,这意味着我们需要一个与HTTP兼容的协议。 因此,我们选择使用基于HTTP的gRPC。 -我们使用[actions-proto-def](https://gitea.com/gitea/actions-proto-def) 和 [actions-proto-go](https://gitea.com/gitea/actions-proto-go) 进行连接。 +我们使用[actions-proto-def](https://gitea.cn/gitea/actions-proto-def) 和 [actions-proto-go](https://gitea.cn/gitea/actions-proto-go) 进行连接。 有关 gRPC 的更多信息,请访问[其官方网站](https://grpc.io/)。 ## 网络架构 diff --git a/docs/content/usage/actions/faq.en-us.md b/docs/content/usage/actions/faq.en-us.md index 427d57c43e..2f2e2398f7 100644 --- a/docs/content/usage/actions/faq.en-us.md +++ b/docs/content/usage/actions/faq.en-us.md @@ -52,7 +52,7 @@ The good news is that you can specify the URL prefix to use actions from anywher This is an extra syntax in Gitea Actions. For example: -- `uses: https://gitea.com/xxx/xxx@xxx` +- `uses: https://devstar.cn/xxx/xxx@xxx` - `uses: https://github.com/xxx/xxx@xxx` - `uses: http://your_gitea_instance.com/xxx@xxx` @@ -108,7 +108,7 @@ defaults: ## Why choose GitHub Actions? Why not something compatible with GitLab CI/CD? -[@lunny](https://gitea.com/lunny) has explained this in the [issue to implement actions](https://github.com/go-gitea/gitea/issues/13539). +[@lunny](https://gitea.cn/lunny) has explained this in the [issue to implement actions](https://github.com/go-gitea/gitea/issues/13539). Furthermore, Actions is not only a CI/CD system but also an automation tool. There have also been numerous [marketplace actions](https://github.com/marketplace?type=actions) implemented in the open-source world. @@ -134,7 +134,7 @@ We also need to re-design how tasks are assigned to runners. A runner with `ubuntu`, `centos`, or `with-gpu` does not necessarily indicate that it can accept jobs with `[centos, with-gpu]`. Therefore, the runner should inform the Gitea instance that it can only accept jobs with `[ubuntu]`, `[centos]`, `[with-gpu]`, and `[ubuntu, with-gpu]`. This is not a technical problem, it was just overlooked in the early design. -See [runtime.go#L65](https://gitea.com/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L65). +See [runtime.go#L65](https://gitea.cn/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L65). Currently, the act runner attempts to match everyone in the labels and uses the first match it finds. @@ -149,7 +149,7 @@ However, the design here needs improvement, as it currently has some rough edges You can add a custom label such as `centos` to a registered runner, which means the runner will receive jobs with `runs-on: centos`. However, the runner may not know which environment to use for this label, resulting in it using a default image or leading to a logical dead end. This default may not match user expectations. -See [runtime.go#L71](https://gitea.com/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L71). +See [runtime.go#L71](https://gitea.cn/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L71). In the meantime, we suggest that you re-register your runner if you want to change its labels. diff --git a/docs/content/usage/actions/faq.zh-cn.md b/docs/content/usage/actions/faq.zh-cn.md index d6e1466801..d01117d7ea 100644 --- a/docs/content/usage/actions/faq.zh-cn.md +++ b/docs/content/usage/actions/faq.zh-cn.md @@ -53,7 +53,7 @@ GitHub 上有成千上万个 [Actions 脚本](https://github.com/marketplace?typ 这是Gitea Actions中的额外语法。 例如: -- `uses: https://gitea.com/xxx/xxx@xxx` +- `uses: https://devstar.cn/xxx/xxx@xxx` - `uses: https://github.com/xxx/xxx@xxx` - `uses: http://your_gitea_instance.com/xxx@xxx` @@ -109,7 +109,7 @@ defaults: ## 为什么选择GitHub Actions?为什么不选择与GitLab CI/CD兼容的工具? -[@lunny](https://gitea.com/lunny)在实现Actions的[问题](https://github.com/go-gitea/gitea/issues/13539)中已经解释过这个问题。 +[@lunny](https://gitea.cn/lunny)在实现Actions的[问题](https://github.com/go-gitea/gitea/issues/13539)中已经解释过这个问题。 此外,Actions不仅是一个CI/CD 系统,还是一个自动化工具。 在开源世界中,已经有许多[市场上的Actions](https://github.com/marketplace?type=actions)实现了。 @@ -135,7 +135,7 @@ defaults: 具有`ubuntu`、`centos`或`with-gpu`的Runner并不一定表示它可以接受`[centos, with-gpu]`的Job。 因此,Runner应该通知Gitea实例它只能接受具有 `[ubuntu]`、`[centos]`、`[with-gpu]` 和 `[ubuntu, with-gpu]`的Job。 这不是一个技术问题,只是在早期设计中被忽视了。 -参见[runtime.go#L65](https://gitea.com/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L65)。 +参见[runtime.go#L65](https://gitea.cn/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L65)。 目前,act runner尝试匹配标签中的每一个,并使用找到的第一个匹配项。 @@ -150,7 +150,7 @@ defaults: 您可以向已注册的Runner添加自定义标签,比如 `centos`,这意味着该Runner将接收具有`runs-on: centos`的Job。 然而,Runner可能不知道要使用哪个环境来执行该标签,导致它使用默认镜像或导致逻辑死胡同。 这个默认值可能与用户的期望不符。 -参见[runtime.go#L71](https://gitea.com/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L71)。 +参见[runtime.go#L71](https://gitea.cn/gitea/act_runner/src/commit/90b8cc6a7a48f45cc28b5ef9660ebf4061fcb336/runtime/runtime.go#L71)。 与此同时,如果您想更改Runner的标签,我们建议您重新注册Runner。 diff --git a/docs/content/usage/actions/overview.en-us.md b/docs/content/usage/actions/overview.en-us.md index 135fdfd433..b0b655274b 100644 --- a/docs/content/usage/actions/overview.en-us.md +++ b/docs/content/usage/actions/overview.en-us.md @@ -30,8 +30,8 @@ To avoid confusion, we have clarified the spelling here: ## Runners Just like other CI/CD solutions, Gitea doesn't run the jobs itself, but delegates the jobs to runners. -The runner of Gitea Actions is called [act runner](https://gitea.com/gitea/act_runner), it is a standalone program and also written in Go. -It is based on a [fork](https://gitea.com/gitea/act) of [nektos/act](http://github.com/nektos/act). +The runner of Gitea Actions is called [act runner](https://gitea.cn/gitea/act_runner), it is a standalone program and also written in Go. +It is based on a [fork](https://gitea.cn/gitea/act) of [nektos/act](http://github.com/nektos/act). Because the runner is deployed independently, there could be potential security issues. To avoid them, please follow two simple rules: @@ -40,7 +40,7 @@ To avoid them, please follow two simple rules: - Don't provide a runner to a repository, organization or instance you don't trust. For Gitea instances used internally, such as instances used by enterprises or individuals, neither of these two rules is a problem, they are naturally so. -However, for public Gitea instances, such as [gitea.com](https://gitea.com), these two rules should be kept in mind when adding or using runners. +However, for public Gitea instances, such as [gitea.com](https://gitea.cn), these two rules should be kept in mind when adding or using runners. ## Status diff --git a/docs/content/usage/actions/overview.zh-cn.md b/docs/content/usage/actions/overview.zh-cn.md index a2ec3070bc..00fc9128a4 100644 --- a/docs/content/usage/actions/overview.zh-cn.md +++ b/docs/content/usage/actions/overview.zh-cn.md @@ -30,8 +30,8 @@ Gitea Actions与[GitHub Actions](https://github.com/features/actions)相似且 ## Runner 和其他CI/CD解决方案一样,Gitea不会自己运行Job,而是将Job委托给Runner。 -Gitea Actions的Runner被称为[act runner](https://gitea.com/gitea/act_runner),它是一个独立的程序,也是用Go语言编写的。 -它是基于[nektos/act](http://github.com/nektos/act)的一个[分支](https://gitea.com/gitea/act) 。 +Gitea Actions的Runner被称为[act runner](https://gitea.cn/gitea/act_runner),它是一个独立的程序,也是用Go语言编写的。 +它是基于[nektos/act](http://github.com/nektos/act)的一个[分支](https://gitea.cn/gitea/act) 。 由于Runner是独立部署的,可能存在潜在的安全问题。 为了避免这些问题,请遵循两个简单的规则: @@ -40,7 +40,7 @@ Gitea Actions的Runner被称为[act runner](https://gitea.com/gitea/act_runner) - 不要为你不信任的仓库、组织或实例提供Runner。 对于内部使用的Gitea实例,比如企业或个人使用的实例,这两个规则不是问题,它们自然而然就是如此。 -然而,对于公共的Gitea实例,比如[gitea.com](https://gitea.com),在添加或使用Runner时应当牢记这两个规则。 +然而,对于公共的Gitea实例,比如[gitea.com](https://gitea.cn),在添加或使用Runner时应当牢记这两个规则。 ## 状态 diff --git a/docs/content/usage/actions/quickstart.en-us.md b/docs/content/usage/actions/quickstart.en-us.md index 0514b6ddf2..e67f0ff68f 100644 --- a/docs/content/usage/actions/quickstart.en-us.md +++ b/docs/content/usage/actions/quickstart.en-us.md @@ -34,7 +34,7 @@ If you want to learn more or encounter any problems while configuring it, please ### Set up runner -Gitea Actions requires [act runner](https://gitea.com/gitea/act_runner) to run the jobs. +Gitea Actions requires [act runner](https://gitea.cn/gitea/act_runner) to run the jobs. In order to avoid consuming too many resources and affecting the Gitea instance, it is recommended to start runners on separate machines from the Gitea instance. You can use the [pre-built binaries](http://dl.gitea.com/act_runner) or the [docker images](https://hub.docker.com/r/gitea/act_runner/tags) to set up the runner. @@ -54,7 +54,7 @@ Before running a runner, you should first register it to your Gitea instance usi There are two arguments required, `instance` and `token`. -`instance` refers to the address of your Gitea instance, like `http://192.168.8.8:3000` or `https://gitea.com`. +`instance` refers to the address of your Gitea instance, like `http://192.168.8.8:3000` or `https://devstar.cn`. The runner and job containers (which are started by the runner to execute jobs) will connect to this address. This means that it could be different from the `ROOT_URL` of your Gitea instance, which is configured for web access. It is always a bad idea to use a loopback address such as `127.0.0.1` or `localhost`. diff --git a/docs/content/usage/actions/quickstart.zh-cn.md b/docs/content/usage/actions/quickstart.zh-cn.md index 8fccc6c909..20e420b5b2 100644 --- a/docs/content/usage/actions/quickstart.zh-cn.md +++ b/docs/content/usage/actions/quickstart.zh-cn.md @@ -34,7 +34,7 @@ ENABLED=true ### 设置Runner -Gitea Actions需要[act runner](https://gitea.com/gitea/act_runner) 来运行Job。 +Gitea Actions需要[act runner](https://gitea.cn/gitea/act_runner) 来运行Job。 为了避免消耗过多资源并影响Gitea实例,建议您在与Gitea实例分开的机器上启动Runner。 您可以使用[预构建的二进制文件](http://dl.gitea.com/act_runner)或[容器镜像](https://hub.docker.com/r/gitea/act_runner/tags)来设置Runner。 @@ -54,7 +54,7 @@ Gitea Actions需要[act runner](https://gitea.com/gitea/act_runner) 来运行Job 需要两个必需的参数:`instance` 和 `token`。 -`instance`是您的Gitea实例的地址,如`http://192.168.8.8:3000`或`https://gitea.com`。 +`instance`是您的Gitea实例的地址,如`http://192.168.8.8:3000`或`https://devstar.cn`。 Runner和Job容器(由Runner启动以执行Job)将连接到此地址。 这意味着它可能与用于Web访问的`ROOT_URL`不同。 使用回环地址(例如 `127.0.0.1` 或 `localhost`)是一个不好的选择。 diff --git a/docs/content/usage/issue-pull-request-templates.en-us.md b/docs/content/usage/issue-pull-request-templates.en-us.md index 5220e0c7a0..a330c0c769 100644 --- a/docs/content/usage/issue-pull-request-templates.en-us.md +++ b/docs/content/usage/issue-pull-request-templates.en-us.md @@ -308,7 +308,7 @@ This is a example for a issue config file blank_issues_enabled: true contact_links: - name: Gitea - url: https://gitea.com + url: https://gitea.cn about: Visit the Gitea Website ``` diff --git a/docs/content/usage/merge-message-templates.en-us.md b/docs/content/usage/merge-message-templates.en-us.md index 5116be3387..51e3f0464c 100644 --- a/docs/content/usage/merge-message-templates.en-us.md +++ b/docs/content/usage/merge-message-templates.en-us.md @@ -44,7 +44,7 @@ You can use the following variables enclosed in `${}` inside these templates whi - PullRequestIndex: Pull request's index number - PullRequestReference: Pull request's reference char with index number. i.e. #1, !2 - ClosingIssues: return a string contains all issues which will be closed by this pull request i.e. `close #1, close #2` -- ReviewedOn: Which pull request this commit belongs to. For example `Reviewed-on: https://gitea.com/foo/bar/pulls/1` +- ReviewedOn: Which pull request this commit belongs to. For example `Reviewed-on: https://gitea.cn/foo/bar/pulls/1` - ReviewedBy: Who approved the pull request before the merge. For example `Reviewed-by: Jane Doe ` ## Rebase diff --git a/models/migrations/fixtures/Test_UpdateBadgeColName/badge.yml b/models/migrations/fixtures/Test_UpdateBadgeColName/badge.yml index 7025144106..2b53f3f71d 100644 --- a/models/migrations/fixtures/Test_UpdateBadgeColName/badge.yml +++ b/models/migrations/fixtures/Test_UpdateBadgeColName/badge.yml @@ -1,4 +1,4 @@ - id: 1 description: the badge - image_url: https://gitea.com/myimage.png + image_url: https://gitea.cn/myimage.png diff --git a/modules/git/submodule_test.go b/modules/git/submodule_test.go index e05f2510c4..27117477cb 100644 --- a/modules/git/submodule_test.go +++ b/modules/git/submodule_test.go @@ -27,7 +27,7 @@ func TestGetRefURL(t *testing.T) { {"ssh://git@try.gitea.io:9999/go-gitea/gitea", "https://try.gitea.io/", "go-gitea/sdk", "", "https://try.gitea.io/go-gitea/gitea"}, {"git://git@try.gitea.io:9999/go-gitea/gitea", "https://try.gitea.io/", "go-gitea/sdk", "", "https://try.gitea.io/go-gitea/gitea"}, {"ssh://git@127.0.0.1:9999/go-gitea/gitea", "https://127.0.0.1:3000/", "go-gitea/sdk", "", "https://127.0.0.1:3000/go-gitea/gitea"}, - {"https://gitea.com:3000/user1/repo1.git", "https://127.0.0.1:3000/", "user/repo2", "", "https://gitea.com:3000/user1/repo1"}, + {"https://gitea.cn:3000/user1/repo1.git", "https://127.0.0.1:3000/", "user/repo2", "", "https://gitea.cn:3000/user1/repo1"}, {"https://example.gitea.com/gitea/user1/repo1.git", "https://example.gitea.com/gitea/", "", "user/repo2", "https://example.gitea.com/gitea/user1/repo1"}, {"https://username:password@github.com/username/repository.git", "/", "username/repository2", "", "https://username:password@github.com/username/repository"}, {"somethingbad", "https://127.0.0.1:3000/go-gitea/gitea", "/", "", ""}, diff --git a/modules/json/json.go b/modules/json/json.go index 34568c75c6..980ffda4b9 100644 --- a/modules/json/json.go +++ b/modules/json/json.go @@ -142,7 +142,7 @@ func Valid(data []byte) bool { return json.Valid(data) } -// UnmarshalHandleDoubleEncode - due to a bug in xorm (see https://gitea.com/xorm/xorm/pulls/1957) - it's +// UnmarshalHandleDoubleEncode - due to a bug in xorm (see https://gitea.cn/xorm/xorm/pulls/1957) - it's // possible that a Blob may be double encoded or gain an unwanted prefix of 0xff 0xfe. func UnmarshalHandleDoubleEncode(bs []byte, v any) error { err := json.Unmarshal(bs, v) diff --git a/modules/markup/camo_test.go b/modules/markup/camo_test.go index ba58835221..581397d508 100644 --- a/modules/markup/camo_test.go +++ b/modules/markup/camo_test.go @@ -12,15 +12,15 @@ import ( ) func TestCamoHandleLink(t *testing.T) { - setting.AppURL = "https://gitea.com" + setting.AppURL = "https://gitea.cn" // Test media proxy setting.Camo.Enabled = true setting.Camo.ServerURL = "https://image.proxy" setting.Camo.HMACKey = "geheim" assert.Equal(t, - "https://gitea.com/img.jpg", - camoHandleLink("https://gitea.com/img.jpg")) + "https://gitea.cn/img.jpg", + camoHandleLink("https://gitea.cn/img.jpg")) assert.Equal(t, "https://testimages.org/img.jpg", camoHandleLink("https://testimages.org/img.jpg")) @@ -30,8 +30,8 @@ func TestCamoHandleLink(t *testing.T) { setting.Camo.Allways = true assert.Equal(t, - "https://gitea.com/img.jpg", - camoHandleLink("https://gitea.com/img.jpg")) + "https://gitea.cn/img.jpg", + camoHandleLink("https://gitea.cn/img.jpg")) assert.Equal(t, "https://image.proxy/tkdlvmqpbIr7SjONfHNgEU622y0/aHR0cHM6Ly90ZXN0aW1hZ2VzLm9yZy9pbWcuanBn", camoHandleLink("https://testimages.org/img.jpg")) diff --git a/modules/packages/conan/conanfile_parser_test.go b/modules/packages/conan/conanfile_parser_test.go index 5801570184..a6f0933fe4 100644 --- a/modules/packages/conan/conanfile_parser_test.go +++ b/modules/packages/conan/conanfile_parser_test.go @@ -16,7 +16,7 @@ const ( license = "MIT" author = "Gitea " homepage = "https://gitea.io/" - url = "https://gitea.com/" + url = "https://gitea.cn/" description = "Description of ConanPackage" topic1 = "gitea" topic2 = "conan" diff --git a/modules/packages/conda/metadata_test.go b/modules/packages/conda/metadata_test.go index 2bb114f030..e7c719a996 100644 --- a/modules/packages/conda/metadata_test.go +++ b/modules/packages/conda/metadata_test.go @@ -19,9 +19,9 @@ const ( packageName = "gitea" packageVersion = "1.0.1" description = "Package Description" - projectURL = "https://gitea.com" - repositoryURL = "https://gitea.com/gitea/gitea" - documentationURL = "https://docs.gitea.com" + projectURL = "https://gitea.cn" + repositoryURL = "https://gitea.cn/gitea/gitea" + documentationURL = "https://docs.gitea.cn" ) func TestParsePackage(t *testing.T) { diff --git a/modules/packages/container/metadata_test.go b/modules/packages/container/metadata_test.go index 665499b2e6..02ffad9c43 100644 --- a/modules/packages/container/metadata_test.go +++ b/modules/packages/container/metadata_test.go @@ -17,9 +17,9 @@ func TestParseImageConfig(t *testing.T) { description := "Image Description" author := "Gitea" license := "MIT" - projectURL := "https://gitea.com" - repositoryURL := "https://gitea.com/gitea" - documentationURL := "https://docs.gitea.com" + projectURL := "https://gitea.cn" + repositoryURL := "https://gitea.cn/gitea" + documentationURL := "https://docs.gitea.cn" configOCI := `{"config": {"labels": {"` + labelAuthors + `": "` + author + `", "` + labelLicenses + `": "` + license + `", "` + labelURL + `": "` + projectURL + `", "` + labelSource + `": "` + repositoryURL + `", "` + labelDocumentation + `": "` + documentationURL + `", "` + labelDescription + `": "` + description + `"}}, "history": [{"created_by": "do it 1"}, {"created_by": "dummy #(nop) do it 2"}]}` diff --git a/modules/packages/pub/metadata_test.go b/modules/packages/pub/metadata_test.go index 8f9126e0c9..dd14335ce8 100644 --- a/modules/packages/pub/metadata_test.go +++ b/modules/packages/pub/metadata_test.go @@ -18,9 +18,9 @@ const ( packageName = "gitea" packageVersion = "1.0.1" description = "Package Description" - projectURL = "https://gitea.com" - repositoryURL = "https://gitea.com/gitea/gitea" - documentationURL = "https://docs.gitea.com" + projectURL = "https://gitea.cn" + repositoryURL = "https://gitea.cn/gitea/gitea" + documentationURL = "https://docs.gitea.cn" ) const pubspecContent = `name: ` + packageName + ` diff --git a/modules/references/references_test.go b/modules/references/references_test.go index e5a0d60fe3..e25d97c59c 100644 --- a/modules/references/references_test.go +++ b/modules/references/references_test.go @@ -265,7 +265,7 @@ func TestFindAllIssueReferences(t *testing.T) { func testFixtures(t *testing.T, fixtures []testFixture, context string) { // Save original value for other tests that may rely on it prevURL := setting.AppURL - setting.AppURL = "https://gitea.com:3000/" + setting.AppURL = "https://gitea.cn:3000/" for _, fixture := range fixtures { expraw := make([]*rawReference, len(fixture.expected)) diff --git a/modules/setting/actions_test.go b/modules/setting/actions_test.go index 3645a3f5da..98fa706a7d 100644 --- a/modules/setting/actions_test.go +++ b/modules/setting/actions_test.go @@ -143,7 +143,7 @@ DEFAULT_ACTIONS_URL = self name: "custom url", iniStr: ` [actions] -DEFAULT_ACTIONS_URL = https://gitea.com +DEFAULT_ACTIONS_URL = https://gitea.cn `, wantErr: assert.NoError, wantURL: "https://github.com", @@ -152,7 +152,7 @@ DEFAULT_ACTIONS_URL = https://gitea.com name: "custom urls", iniStr: ` [actions] -DEFAULT_ACTIONS_URL = https://gitea.com,https://github.com +DEFAULT_ACTIONS_URL = https://gitea.cn,https://github.com `, wantErr: assert.NoError, wantURL: "https://github.com", diff --git a/modules/structs/org.go b/modules/structs/org.go index c0a545ac1c..47978adb35 100644 --- a/modules/structs/org.go +++ b/modules/structs/org.go @@ -43,7 +43,7 @@ type CreateOrgOption struct { RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` } -// TODO: make EditOrgOption fields optional after https://gitea.com/go-chi/binding/pulls/5 got merged +// TODO: make EditOrgOption fields optional after https://gitea.cn/go-chi/binding/pulls/5 got merged // EditOrgOption options for editing an organization type EditOrgOption struct { diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c9b8747443..580350e89f 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -229,7 +229,7 @@ network_error = Network error [startpage] app_desc = A painless, self-hosted Git service install = Easy to install -install_desc = Simply run the binary for your platform, ship it with Docker, or get it packaged. +install_desc = Simply run the binary for your platform, ship it with Docker, or get it packaged. platform = Cross-platform platform_desc = Gitea runs anywhere Go can compile for: Windows, macOS, Linux, ARM, etc. Choose the one you love! lightweight = Lightweight @@ -2486,7 +2486,7 @@ settings.tags.protection.allowed.teams = Allowed teams settings.tags.protection.allowed.noone = No One settings.tags.protection.create = Protect Tag settings.tags.protection.none = There are no protected tags. -settings.tags.protection.pattern.description = You can use a single name or a glob pattern or regular expression to match multiple tags. Read more in the protected tags guide. +settings.tags.protection.pattern.description = You can use a single name or a glob pattern or regular expression to match multiple tags. Read more in the protected tags guide. settings.bot_token = Bot Token settings.chat_id = Chat ID settings.thread_id = Thread ID @@ -3044,12 +3044,12 @@ packages.size = Size packages.published = Published defaulthooks = Default Webhooks -defaulthooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here are defaults and will be copied into all new repositories. Read more in the webhooks guide. +defaulthooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here are defaults and will be copied into all new repositories. Read more in the webhooks guide. defaulthooks.add_webhook = Add Default Webhook defaulthooks.update_webhook = Update Default Webhook systemhooks = System Webhooks -systemhooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here will act on all repositories on the system, so please consider any performance implications this may have. Read more in the webhooks guide. +systemhooks.desc = Webhooks automatically make HTTP POST requests to a server when certain Gitea events trigger. Webhooks defined here will act on all repositories on the system, so please consider any performance implications this may have. Read more in the webhooks guide. systemhooks.add_webhook = Add System Webhook systemhooks.update_webhook = Update System Webhook @@ -3154,7 +3154,7 @@ auths.tip.google_plus = Obtain OAuth2 client credentials from the Google API con auths.tip.openid_connect = Use the OpenID Connect Discovery URL "https://{server}/.well-known/openid-configuration" to specify the endpoints auths.tip.twitter = Go to https://dev.twitter.com/apps, create an application and ensure that the “Allow this application to be used to Sign in with Twitter” option is enabled auths.tip.discord = Register a new application on https://discordapp.com/developers/applications/me -auths.tip.gitea = Register a new OAuth2 application. Guide can be found at https://docs.gitea.com/development/oauth2-provider +auths.tip.gitea = Register a new OAuth2 application. Guide can be found at https://docs.gitea.cn/development/oauth2-provider auths.tip.yandex = Create a new application at https://oauth.yandex.com/client/new. Select following permissions from the "Yandex.Passport API" section: "Access to email address", "Access to user avatar" and "Access to username, first name and surname, gender" auths.tip.mastodon = Input a custom instance URL for the mastodon instance you want to authenticate with (or use the default one) auths.edit = Edit Authentication Source diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 2ed20c624a..7d3232e9e8 100644 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -228,7 +228,7 @@ network_error=网络错误 [startpage] app_desc=一款极易搭建的自助 Git 服务 install=易安装 -install_desc=通过 二进制 来运行;或者通过 docker 来运行;或者通过 安装包 来运行 +install_desc=通过 二进制 来运行;或者通过 docker 来运行;或者通过 安装包 来运行 platform=跨平台 platform_desc=任何 Go 语言 支持的平台都可以运行 Gitea,包括 Windows、Mac、Linux 以及 ARM。挑一个您喜欢的就行! lightweight=轻量级 @@ -2481,7 +2481,7 @@ settings.tags.protection.allowed.teams=允许的团队 settings.tags.protection.allowed.noone=无 settings.tags.protection.create=保护Git标签 settings.tags.protection.none=没有受保护的Git标签 -settings.tags.protection.pattern.description=你可以使用单个名称或 glob 模式匹配或正则表达式来匹配多个标签。了解详情请访问 受保护Git标签指南。 +settings.tags.protection.pattern.description=你可以使用单个名称或 glob 模式匹配或正则表达式来匹配多个标签。了解详情请访问 受保护Git标签指南。 settings.bot_token=Bot 令牌 settings.chat_id=聊天 ID settings.thread_id=线程 ID @@ -3039,12 +3039,12 @@ packages.size=大小 packages.published=已发布 defaulthooks=默认Web钩子 -defaulthooks.desc=当某些 Gitea 事件触发时,Web 钩子自动向服务器发出 HTTP POST 请求。这里定义的 Web 钩子是默认配置,将被复制到所有新的仓库中。详情请访问 Web 钩子指南。 +defaulthooks.desc=当某些 Gitea 事件触发时,Web 钩子自动向服务器发出 HTTP POST 请求。这里定义的 Web 钩子是默认配置,将被复制到所有新的仓库中。详情请访问 Web 钩子指南。 defaulthooks.add_webhook=添加默认Web 钩子 defaulthooks.update_webhook=更新默认 Web 钩子 systemhooks=系统 Web 钩子 -systemhooks.desc=当某些 Gitea 事件触发时,Web 钩子自动向服务器发出HTTP POST请求。这里定义的 Web 钩子将作用于系统上的所有仓库,所以请考虑这可能带来的任何性能影响。了解详情请访问 Web 钩子指南。 +systemhooks.desc=当某些 Gitea 事件触发时,Web 钩子自动向服务器发出HTTP POST请求。这里定义的 Web 钩子将作用于系统上的所有仓库,所以请考虑这可能带来的任何性能影响。了解详情请访问 Web 钩子指南。 systemhooks.add_webhook=添加系统 Web 钩子 systemhooks.update_webhook=更新系统 Web 钩子 @@ -3149,7 +3149,7 @@ auths.tip.google_plus=从谷歌 API 控制台 (https://console.developers.google auths.tip.openid_connect=使用 OpenID 连接发现 URL ({server}/.well-known/openid-configuration) 来指定终点 auths.tip.twitter=访问 https://dev.twitter.com/apps,创建应用并确保启用了"允许此应用程序用于登录 Twitter"的选项。 auths.tip.discord=在 https://discordapp.com/developers/applications/me 上注册新应用程序 -auths.tip.gitea=注册一个新的 OAuth2 应用程序。可以访问 https://docs.gitea.com/development/oauth2-provider 查看帮助 +auths.tip.gitea=注册一个新的 OAuth2 应用程序。可以访问 https://docs.gitea.cn/development/oauth2-provider 查看帮助 auths.tip.yandex=在 https://oauth.yandex.com/client/new 上创建一个新的应用程序。在“ Yandex.Passport API”这部分中选择以下权限:“访问电子邮件地址(Access to email address)”,“访问用户头像(Access to user avatar)”和“访问用户名,名字和姓氏,性别(Access to username, first name and surname, genderAccess to username, first name and surname, gender)” auths.tip.mastodon=输入您想要认证的 mastodon 实例的自定义 URL (或使用默认值) auths.edit=修改认证源 diff --git a/routers/install/install.go b/routers/install/install.go index 8fac0fe289..fc2414785d 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -185,7 +185,7 @@ func checkDatabase(ctx *context.Context, form *forms.InstallForm) bool { if err = db.InitEngine(ctx); err != nil { if strings.Contains(err.Error(), `Unknown database type: sqlite3`) { ctx.Data["Err_DbType"] = true - ctx.RenderWithErr(ctx.Tr("install.sqlite3_not_available", "https://docs.gitea.com/installation/install-from-binary"), tplInstall, form) + ctx.RenderWithErr(ctx.Tr("install.sqlite3_not_available", "https://docs.gitea.cn/installation/install-from-binary"), tplInstall, form) } else { ctx.Data["Err_DbSetting"] = true ctx.RenderWithErr(ctx.Tr("install.invalid_db_setting", err), tplInstall, form) diff --git a/routers/web/repo/setting/webhook.go b/routers/web/repo/setting/webhook.go index 7661599729..acb420e95b 100644 --- a/routers/web/repo/setting/webhook.go +++ b/routers/web/repo/setting/webhook.go @@ -45,7 +45,7 @@ func Webhooks(ctx *context.Context) { ctx.Data["PageIsSettingsHooks"] = true ctx.Data["BaseLink"] = ctx.Repo.RepoLink + "/settings/hooks" ctx.Data["BaseLinkNew"] = ctx.Repo.RepoLink + "/settings/hooks" - ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://docs.gitea.com/usage/webhooks") + ctx.Data["Description"] = ctx.Tr("repo.settings.hooks_desc", "https://docs.gitea.cn/usage/webhooks") ws, err := db.Find[webhook.Webhook](ctx, webhook.ListWebhookOptions{RepoID: ctx.Repo.Repository.ID}) if err != nil { diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 203dac7439..8aa27d386f 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -1099,7 +1099,7 @@ func checkOutdatedBranch(ctx *context.Context) { } if dbBranch.CommitID != commit.ID.String() { - ctx.Flash.Warning(ctx.Tr("repo.error.broken_git_hook", "https://docs.gitea.com/help/faq#push-hook--webhook--actions-arent-running"), true) + ctx.Flash.Warning(ctx.Tr("repo.error.broken_git_hook", "https://docs.gitea.cn/help/faq#push-hook--webhook--actions-arent-running"), true) } } diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index f0749e1021..e674d634da 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -274,7 +274,7 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileDb // the media link usually be like /[user]/[repoName]/media/branch/[branchName], // Eg. /Tom/.profile/media/branch/main // The branch shown on the profile page is the default branch, this need to be in sync with doc, see: - // https://docs.gitea.com/usage/profile-readme + // https://docs.gitea.cn/usage/profile-readme Base: profileDbRepo.Link(), BranchPath: path.Join("branch", util.PathEscapeSegments(profileDbRepo.DefaultBranch)), }, diff --git a/services/migrations/gitea_downloader_test.go b/services/migrations/gitea_downloader_test.go index c37c70947e..a20b3c91c1 100644 --- a/services/migrations/gitea_downloader_test.go +++ b/services/migrations/gitea_downloader_test.go @@ -23,12 +23,12 @@ func TestGiteaDownloadRepo(t *testing.T) { t.Skip("skipped test because GITEA_TOKEN was not in the environment") } - resp, err := http.Get("https://gitea.com/gitea") + resp, err := http.Get("https://gitea.cn/gitea") if err != nil || resp.StatusCode != http.StatusOK { - t.Skipf("Can't reach https://gitea.com, skipping %s", t.Name()) + t.Skipf("Can't reach https://gitea.cn, skipping %s", t.Name()) } - downloader, err := NewGiteaDownloader(context.Background(), "https://gitea.com", "gitea/test_repo", "", "", giteaToken) + downloader, err := NewGiteaDownloader(context.Background(), "https://gitea.cn", "gitea/test_repo", "", "", giteaToken) if downloader == nil { t.Fatal("NewGitlabDownloader is nil") } @@ -43,8 +43,8 @@ func TestGiteaDownloadRepo(t *testing.T) { Owner: "gitea", IsPrivate: false, Description: "Test repository for testing migration from gitea to gitea", - CloneURL: "https://gitea.com/gitea/test_repo.git", - OriginalURL: "https://gitea.com/gitea/test_repo", + CloneURL: "https://gitea.cn/gitea/test_repo.git", + OriginalURL: "https://gitea.cn/gitea/test_repo", DefaultBranch: "master", }, repo) @@ -250,7 +250,7 @@ func TestGiteaDownloadRepo(t *testing.T) { OwnerName: "gitea", }, Head: base.PullRequestBranch{ - CloneURL: "https://gitea.com/6543-forks/test_repo.git", + CloneURL: "https://gitea.cn/6543-forks/test_repo.git", Ref: "refs/pull/12/head", SHA: "b6ab5d9ae000b579a5fff03f92c486da4ddf48b6", RepoName: "test_repo", @@ -259,7 +259,7 @@ func TestGiteaDownloadRepo(t *testing.T) { Merged: true, MergedTime: timePtr(time.Unix(1598982934, 0)), MergeCommitSHA: "827aa28a907853e5ddfa40c8f9bc52471a2685fd", - PatchURL: "https://gitea.com/gitea/test_repo/pulls/12.patch", + PatchURL: "https://gitea.cn/gitea/test_repo/pulls/12.patch", }, prs[1]) reviews, err := downloader.GetReviews(&base.Issue{Number: 7, ForeignIndex: 7}) diff --git a/services/user/update_test.go b/services/user/update_test.go index fc24a6c212..28f7992ab3 100644 --- a/services/user/update_test.go +++ b/services/user/update_test.go @@ -30,7 +30,7 @@ func TestUpdateUser(t *testing.T) { opts := &UpdateOptions{ KeepEmailPrivate: optional.Some(false), FullName: optional.Some("Changed Name"), - Website: optional.Some("https://gitea.com/"), + Website: optional.Some("https://gitea.cn/"), Location: optional.Some("location"), Description: optional.Some("description"), AllowGitHook: optional.Some(true), diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 8e3272f1ce..c1bad67444 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -56,7 +56,7 @@ {{template "custom/extra_links" .}} {{if not .IsSigned}} - {{ctx.Locale.Tr "help"}} + {{ctx.Locale.Tr "help"}} {{end}} @@ -151,7 +151,7 @@ {{svg "octicon-tools"}} {{ctx.Locale.Tr "your_settings"}} - + {{svg "octicon-question"}} {{ctx.Locale.Tr "help"}} diff --git a/templates/install.tmpl b/templates/install.tmpl index c452fd1fe3..627d15e462 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -8,7 +8,7 @@
{{template "base/alert" .}} -

{{ctx.Locale.Tr "install.docker_helper" "https://docs.gitea.com/installation/install-with-docker"}}

+

{{ctx.Locale.Tr "install.docker_helper" "https://docs.gitea.cn/installation/install-with-docker"}}

diff --git a/templates/package/content/alpine.tmpl b/templates/package/content/alpine.tmpl index 5c144b9779..fb996ca0d0 100644 --- a/templates/package/content/alpine.tmpl +++ b/templates/package/content/alpine.tmpl @@ -18,7 +18,7 @@
- +
diff --git a/templates/package/content/cargo.tmpl b/templates/package/content/cargo.tmpl index 7fd88a284a..317529f6f3 100644 --- a/templates/package/content/cargo.tmpl +++ b/templates/package/content/cargo.tmpl @@ -19,7 +19,7 @@ git-fetch-with-cli = true
cargo add {{.PackageDescriptor.Package.Name}}@{{.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/chef.tmpl b/templates/package/content/chef.tmpl index 03ce9f852b..16eaca43e5 100644 --- a/templates/package/content/chef.tmpl +++ b/templates/package/content/chef.tmpl @@ -11,7 +11,7 @@
knife supermarket install {{.PackageDescriptor.Package.Name}} {{.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/composer.tmpl b/templates/package/content/composer.tmpl index 8d48e6c95d..ae9b5f16ff 100644 --- a/templates/package/content/composer.tmpl +++ b/templates/package/content/composer.tmpl @@ -17,7 +17,7 @@
composer require {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/conan.tmpl b/templates/package/content/conan.tmpl index b68a45fde3..8dbfd89756 100644 --- a/templates/package/content/conan.tmpl +++ b/templates/package/content/conan.tmpl @@ -11,7 +11,7 @@
conan install --remote=gitea {{.PackageDescriptor.Package.Name}}/{{.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/conda.tmpl b/templates/package/content/conda.tmpl index 031b51aa10..d68aa53104 100644 --- a/templates/package/content/conda.tmpl +++ b/templates/package/content/conda.tmpl @@ -16,7 +16,7 @@ default_channels:
conda install{{if $channel}} -c {{$channel}}{{end}} {{.PackageDescriptor.PackageProperties.GetByName "conda.name"}}={{.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/container.tmpl b/templates/package/content/container.tmpl index 138fedecb3..36d3e717a5 100644 --- a/templates/package/content/container.tmpl +++ b/templates/package/content/container.tmpl @@ -19,7 +19,7 @@
{{range .PackageDescriptor.Files}}{{if eq .File.LowerName "manifest.json"}}{{.Properties.GetByName "container.digest"}}{{end}}{{end}}
- +
diff --git a/templates/package/content/cran.tmpl b/templates/package/content/cran.tmpl index ae58e6f334..17a66ee8fc 100644 --- a/templates/package/content/cran.tmpl +++ b/templates/package/content/cran.tmpl @@ -11,7 +11,7 @@
install.packages("{{.PackageDescriptor.Package.Name}}")
- +
diff --git a/templates/package/content/debian.tmpl b/templates/package/content/debian.tmpl index 73b8257835..7dfa80b8b3 100644 --- a/templates/package/content/debian.tmpl +++ b/templates/package/content/debian.tmpl @@ -16,7 +16,7 @@ sudo apt update
- +
diff --git a/templates/package/content/generic.tmpl b/templates/package/content/generic.tmpl index 2fd952105f..a45fc3ea1a 100644 --- a/templates/package/content/generic.tmpl +++ b/templates/package/content/generic.tmpl @@ -11,7 +11,7 @@ curl -OJ - + diff --git a/templates/package/content/go.tmpl b/templates/package/content/go.tmpl index 80d1ab231a..ab89a05658 100644 --- a/templates/package/content/go.tmpl +++ b/templates/package/content/go.tmpl @@ -7,7 +7,7 @@
GOPROXY= go install {{$.PackageDescriptor.Package.Name}}@{{$.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/helm.tmpl b/templates/package/content/helm.tmpl index da846e934d..117b58c4b6 100644 --- a/templates/package/content/helm.tmpl +++ b/templates/package/content/helm.tmpl @@ -12,7 +12,7 @@ helm repo update
helm install {{.PackageDescriptor.Package.Name}} {{AppDomain}}/{{.PackageDescriptor.Package.Name}}
- +
diff --git a/templates/package/content/maven.tmpl b/templates/package/content/maven.tmpl index f56595a830..6057c4b733 100644 --- a/templates/package/content/maven.tmpl +++ b/templates/package/content/maven.tmpl @@ -44,7 +44,7 @@
mvn dependency:get -DremoteRepositories= -Dartifact={{.PackageDescriptor.Metadata.GroupID}}:{{.PackageDescriptor.Metadata.ArtifactID}}:{{.PackageDescriptor.Version.Version}}
- +
diff --git a/templates/package/content/npm.tmpl b/templates/package/content/npm.tmpl index 01298a664c..8df7aa6484 100644 --- a/templates/package/content/npm.tmpl +++ b/templates/package/content/npm.tmpl @@ -15,7 +15,7 @@
"{{.PackageDescriptor.Package.Name}}": "{{.PackageDescriptor.Version.Version}}"
- +
diff --git a/templates/package/content/nuget.tmpl b/templates/package/content/nuget.tmpl index f1fe420c0b..ca825cb82b 100644 --- a/templates/package/content/nuget.tmpl +++ b/templates/package/content/nuget.tmpl @@ -11,7 +11,7 @@
dotnet add package --source {{.PackageDescriptor.Owner.Name}} --version {{.PackageDescriptor.Version.Version}} {{.PackageDescriptor.Package.Name}}
- +
diff --git a/templates/package/content/pub.tmpl b/templates/package/content/pub.tmpl index f2c7ac938f..2e1d955baa 100644 --- a/templates/package/content/pub.tmpl +++ b/templates/package/content/pub.tmpl @@ -7,7 +7,7 @@
dart pub add {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}} --hosted-url=
- +
diff --git a/templates/package/content/pypi.tmpl b/templates/package/content/pypi.tmpl index 817fced97b..6a9b1e0a19 100644 --- a/templates/package/content/pypi.tmpl +++ b/templates/package/content/pypi.tmpl @@ -7,7 +7,7 @@
pip install --index-url  {{.PackageDescriptor.Package.Name}}
- +
diff --git a/templates/package/content/rpm.tmpl b/templates/package/content/rpm.tmpl index 3faa8a0dc7..70edcb107a 100644 --- a/templates/package/content/rpm.tmpl +++ b/templates/package/content/rpm.tmpl @@ -31,7 +31,7 @@ zypper install {{$.PackageDescriptor.Package.Name}}
- +
diff --git a/templates/package/content/rubygems.tmpl b/templates/package/content/rubygems.tmpl index 610dfc7856..471efb599b 100644 --- a/templates/package/content/rubygems.tmpl +++ b/templates/package/content/rubygems.tmpl @@ -13,7 +13,7 @@ end
- +
diff --git a/templates/package/content/swift.tmpl b/templates/package/content/swift.tmpl index aacbc83980..e40752af98 100644 --- a/templates/package/content/swift.tmpl +++ b/templates/package/content/swift.tmpl @@ -17,7 +17,7 @@
swift package resolve
- +
diff --git a/templates/package/content/vagrant.tmpl b/templates/package/content/vagrant.tmpl index 7666284b87..b7118845b9 100644 --- a/templates/package/content/vagrant.tmpl +++ b/templates/package/content/vagrant.tmpl @@ -7,7 +7,7 @@
vagrant box add --box-version {{.PackageDescriptor.Version.Version}} ""
- +
diff --git a/templates/package/shared/cargo.tmpl b/templates/package/shared/cargo.tmpl index 7652231465..72a7ea01fd 100644 --- a/templates/package/shared/cargo.tmpl +++ b/templates/package/shared/cargo.tmpl @@ -18,7 +18,7 @@
- +
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl index e4e8eca91e..f121056c03 100644 --- a/templates/package/shared/list.tmpl +++ b/templates/package/shared/list.tmpl @@ -47,7 +47,7 @@ {{$packagesUrl := URLJoin .Owner.HomeLink "-" "packages"}}

{{ctx.Locale.Tr "packages.empty.repo" $packagesUrl}}

{{end}} -

{{ctx.Locale.Tr "packages.empty.documentation" "https://docs.gitea.com/usage/packages/overview/"}}

+

{{ctx.Locale.Tr "packages.empty.documentation" "https://docs.gitea.cn/usage/packages/overview/"}}

{{else}}

{{ctx.Locale.Tr "packages.filter.no_result"}}

diff --git a/templates/repo/actions/no_workflows.tmpl b/templates/repo/actions/no_workflows.tmpl index 009313581e..25275bf5d5 100644 --- a/templates/repo/actions/no_workflows.tmpl +++ b/templates/repo/actions/no_workflows.tmpl @@ -2,7 +2,7 @@ {{svg "octicon-no-entry" 48}}

{{ctx.Locale.Tr "actions.runs.no_workflows"}}

{{if and .CanWriteCode .CanWriteActions}} -

{{ctx.Locale.Tr "actions.runs.no_workflows.quick_start" "https://docs.gitea.com/usage/actions/quickstart/"}}

+

{{ctx.Locale.Tr "actions.runs.no_workflows.quick_start" "https://docs.gitea.cn/usage/actions/quickstart/"}}

{{end}} -

{{ctx.Locale.Tr "actions.runs.no_workflows.documentation" "https://docs.gitea.com/usage/actions/overview/"}}

+

{{ctx.Locale.Tr "actions.runs.no_workflows.documentation" "https://docs.gitea.cn/usage/actions/overview/"}}

diff --git a/templates/repo/migrate/gitea.tmpl b/templates/repo/migrate/gitea.tmpl index 3b8f377096..dd50e4ab91 100644 --- a/templates/repo/migrate/gitea.tmpl +++ b/templates/repo/migrate/gitea.tmpl @@ -21,7 +21,7 @@
- {{svg "octicon-question"}} + {{svg "octicon-question"}}
{{template "repo/migrate/options" .}} diff --git a/templates/repo/migrate/gogs.tmpl b/templates/repo/migrate/gogs.tmpl index eca83b1636..8af147f933 100644 --- a/templates/repo/migrate/gogs.tmpl +++ b/templates/repo/migrate/gogs.tmpl @@ -21,7 +21,7 @@
- +
{{template "repo/migrate/options" .}} diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 4f98133df3..de76feed04 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -87,18 +87,18 @@ {{else}} {{if $newMirrorsEntirelyEnabled}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs"}} - {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}

+ {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}

{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.pull_mirror_instructions"}} - {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_pull_section"}}
+ {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_pull_section"}}
{{else if $onlyNewPushMirrorsEnabled}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_pull_mirror.instructions"}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.more_information_if_disabled"}} - {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}
+ {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}
{{else if $onlyNewPullMirrorsEnabled}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_push_mirror.instructions"}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_push_mirror.pull_mirror_warning"}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.more_information_if_disabled"}} - {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}

+ {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.doc_link_title"}}

{{ctx.Locale.Tr "repo.settings.mirror_settings.docs.disabled_push_mirror.info"}} {{if $existingPushMirror}} {{ctx.Locale.Tr "repo.settings.mirror_settings.docs.can_still_use"}} diff --git a/templates/repo/settings/webhook/gitea.tmpl b/templates/repo/settings/webhook/gitea.tmpl index e6eb61ea92..b5c0b8d8a6 100644 --- a/templates/repo/settings/webhook/gitea.tmpl +++ b/templates/repo/settings/webhook/gitea.tmpl @@ -1,5 +1,5 @@ {{if eq .HookType "gitea"}} -

{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://docs.gitea.com/usage/webhooks" (ctx.Locale.Tr "repo.settings.web_hook_name_gitea")}}

+

{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://docs.gitea.cn/usage/webhooks" (ctx.Locale.Tr "repo.settings.web_hook_name_gitea")}}

{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}} diff --git a/templates/repo/settings/webhook/gogs.tmpl b/templates/repo/settings/webhook/gogs.tmpl index e91a3279e4..82c5f19131 100644 --- a/templates/repo/settings/webhook/gogs.tmpl +++ b/templates/repo/settings/webhook/gogs.tmpl @@ -1,5 +1,5 @@ {{if eq .HookType "gogs"}} -

{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://docs.gitea.com/usage/webhooks" (ctx.Locale.Tr "repo.settings.web_hook_name_gogs")}}

+

{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://docs.gitea.cn/usage/webhooks" (ctx.Locale.Tr "repo.settings.web_hook_name_gogs")}}

{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}} diff --git a/templates/shared/actions/runner_list.tmpl b/templates/shared/actions/runner_list.tmpl index d3a86fe3fa..104d0debda 100644 --- a/templates/shared/actions/runner_list.tmpl +++ b/templates/shared/actions/runner_list.tmpl @@ -10,7 +10,7 @@