Skip to content

Commit d5beeff

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: [skip ci] Updated licenses and gitignores Fix missing issue search index update when changing status (go-gitea#28325) Keep profile tab when clicking on Language (go-gitea#28320) Fix wrong link in `protect_branch_name_pattern_desc` (go-gitea#28313) Fix links in docs (go-gitea#28302)
2 parents c53c70c + ec1feed commit d5beeff

File tree

10 files changed

+77
-12
lines changed

10 files changed

+77
-12
lines changed

docs/content/administration/https-support.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CERT_FILE = cert.pem
3333
KEY_FILE = key.pem
3434
```
3535

36-
请注意,如果您的证书由第三方证书颁发机构签名(即不是自签名的),则 cert.pem 应包含证书链。服务器证书必须是 cert.pem 中的第一个条目,后跟中介(如果有)。不必包含根证书,因为连接客户端必须已经拥有根证书才能建立信任关系。要了解有关配置值的更多信息,请查看 [配置备忘单](../config-cheat-sheet#server-server)
36+
请注意,如果您的证书由第三方证书颁发机构签名(即不是自签名的),则 cert.pem 应包含证书链。服务器证书必须是 cert.pem 中的第一个条目,后跟中介(如果有)。不必包含根证书,因为连接客户端必须已经拥有根证书才能建立信任关系。要了解有关配置值的更多信息,请查看 [配置备忘单](administration/config-cheat-sheet#server-server)
3737

3838
对于“CERT_FILE”或“KEY_FILE”字段,当文件路径是相对路径时,文件路径相对于“GITEA_CUSTOM”环境变量。它也可以是绝对路径。
3939

docs/content/development/api-usage.en-us.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ menu:
1919

2020
## Enabling/configuring API access
2121

22-
By default, `ENABLE_SWAGGER` is true, and
23-
`MAX_RESPONSE_ITEMS` is set to 50. See [Config Cheat
24-
Sheet](administration/config-cheat-sheet.md) for more
25-
information.
22+
By default, `ENABLE_SWAGGER` is true, and `MAX_RESPONSE_ITEMS` is set to 50. See [Config Cheat Sheet](administration/config-cheat-sheet.md) for more information.
2623

2724
## Authentication
2825

docs/content/development/api-usage.zh-cn.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ menu:
1919

2020
## 开启/配置 API 访问
2121

22-
通常情况下, `ENABLE_SWAGGER` 默认开启并且参数 `MAX_RESPONSE_ITEMS` 默认为 50。您可以从 [Config Cheat
23-
Sheet](administration/config-cheat-sheet.md) 中获取更多配置相关信息。
22+
通常情况下, `ENABLE_SWAGGER` 默认开启并且参数 `MAX_RESPONSE_ITEMS` 默认为 50。您可以从 [Config Cheat Sheet](administration/config-cheat-sheet.md) 中获取更多配置相关信息。
2423

2524
## 通过 API 认证
2625

docs/content/installation/from-binary.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ chmod 770 /etc/gitea
117117
- 使用 `gitea generate secret` 创建 `SECRET_KEY``INTERNAL_TOKEN`
118118
- 提供所有必要的密钥
119119
120-
详情参考 [命令行文档](/zh-cn/command-line/) 中有关 `gitea generate secret` 的内容。
120+
详情参考 [命令行文档](administration/command-line.md) 中有关 `gitea generate secret` 的内容。
121121
122122
### 配置 Gitea 工作路径
123123
@@ -209,6 +209,6 @@ remote: ./hooks/pre-receive.d/gitea: line 2: [...]: No such file or directory
209209

210210
如果您没有使用 Gitea 内置的 SSH 服务器,您还需要通过在管理选项中运行任务 `Update the '.ssh/authorized_keys' file with Gitea SSH keys.` 来重新编写授权密钥文件。
211211

212-
> 更多经验总结,请参考英文版 [Troubleshooting](/en-us/install-from-binary/#troubleshooting)
212+
> 更多经验总结,请参考英文版 [Troubleshooting](https://docs.gitea.com/installation/install-from-binary#troubleshooting)
213213
214214
如果从本页中没有找到你需要的内容,请访问 [帮助页面](help/support.md)

docs/content/installation/from-source.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ git checkout v@version@ # or git checkout pr-xyz
6464

6565
- `go` @minGoVersion@ 或更高版本,请参阅 [这里](https://golang.org/dl/)
6666
- `node` @minNodeVersion@ 或更高版本,并且安装 `npm`, 请参阅 [这里](https://nodejs.org/zh-cn/download/)
67-
- `make`, 请参阅 [这里](/zh-cn/hacking-on-gitea/)
67+
- `make`, 请参阅 [这里](development/hacking-on-gitea.md)
6868

6969
为了尽可能简化编译过程,提供了各种 [make任务](https://github.com/go-gitea/gitea/blob/main/Makefile)
7070

options/license/SAX-PD-2.0

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SAX2 is Free!
2+
3+
I hereby abandon any property rights to SAX 2.0 (the Simple API for
4+
XML), and release all of the SAX 2.0 source code, compiled code, and
5+
documentation contained in this distribution into the Public Domain.
6+
SAX comes with NO WARRANTY or guarantee of fitness for any
7+
purpose.
8+
9+
David Megginson, david@megginson.com
10+
2000-05-05

options/license/radvd

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
The author(s) grant permission for redistribution and use in source and
2+
binary forms, with or without modification, of the software and documentation
3+
provided that the following conditions are met:
4+
5+
0. If you receive a version of the software that is specifically labelled
6+
as not being for redistribution (check the version message and/or README),
7+
you are not permitted to redistribute that version of the software in any
8+
way or form.
9+
1. All terms of all other applicable copyrights and licenses must be
10+
followed.
11+
2. Redistributions of source code must retain the authors' copyright
12+
notice(s), this list of conditions, and the following disclaimer.
13+
3. Redistributions in binary form must reproduce the authors' copyright
14+
notice(s), this list of conditions, and the following disclaimer in the
15+
documentation and/or other materials provided with the distribution.
16+
4. All advertising materials mentioning features or use of this software
17+
must display the following acknowledgement with the name(s) of the
18+
authors as specified in the copyright notice(s) substituted where
19+
indicated:
20+
21+
This product includes software developed by the authors which are
22+
mentioned at the start of the source files and other contributors.
23+
24+
5. Neither the name(s) of the author(s) nor the names of its contributors
25+
may be used to endorse or promote products derived from this software
26+
without specific prior written permission.
27+
28+
THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY
29+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
30+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31+
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY
32+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
33+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
34+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
35+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

options/locale/locale_en-US.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ settings.dismiss_stale_approvals_desc = When new commits that change the content
23122312
settings.require_signed_commits = Require Signed Commits
23132313
settings.require_signed_commits_desc = Reject pushes to this branch if they are unsigned or unverifiable.
23142314
settings.protect_branch_name_pattern = Protected Branch Name Pattern
2315-
settings.protect_branch_name_pattern_desc = "Protected branch name patterns. See <a href="github.com/gobwas/glob">the documentation</a> for pattern syntax. Examples: main, release/**"
2315+
settings.protect_branch_name_pattern_desc = "Protected branch name patterns. See <a href="https://github.com/gobwas/glob">the documentation</a> for pattern syntax. Examples: main, release/**"
23162316
settings.protect_patterns = Patterns
23172317
settings.protect_protected_file_patterns = "Protected file patterns (separated using semicolon ';'):"
23182318
settings.protect_protected_file_patterns_desc = "Protected files are not allowed to be changed directly even if user has rights to add, edit, or delete files in this branch. Multiple patterns can be separated using semicolon (';'). See <a href='https://pkg.go.dev/github.com/gobwas/glob#Compile'>github.com/gobwas/glob</a> documentation for pattern syntax. Examples: <code>.drone.yml</code>, <code>/docs/**/*.txt</code>."

services/indexer/notify.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,25 @@ func (r *indexerNotifier) IssueChangeTitle(ctx context.Context, doer *user_model
130130
func (r *indexerNotifier) IssueChangeRef(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldRef string) {
131131
issue_indexer.UpdateIssueIndexer(ctx, issue.ID)
132132
}
133+
134+
func (r *indexerNotifier) IssueChangeStatus(ctx context.Context, doer *user_model.User, commitID string, issue *issues_model.Issue, actionComment *issues_model.Comment, closeOrReopen bool) {
135+
issue_indexer.UpdateIssueIndexer(ctx, issue.ID)
136+
}
137+
138+
func (r *indexerNotifier) IssueChangeAssignee(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, assignee *user_model.User, removed bool, comment *issues_model.Comment) {
139+
issue_indexer.UpdateIssueIndexer(ctx, issue.ID)
140+
}
141+
142+
func (r *indexerNotifier) IssueChangeMilestone(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, oldMilestoneID int64) {
143+
issue_indexer.UpdateIssueIndexer(ctx, issue.ID)
144+
}
145+
146+
func (r *indexerNotifier) IssueChangeLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue,
147+
addedLabels, removedLabels []*issues_model.Label,
148+
) {
149+
issue_indexer.UpdateIssueIndexer(ctx, issue.ID)
150+
}
151+
152+
func (r *indexerNotifier) IssueClearLabels(ctx context.Context, doer *user_model.User, issue *issues_model.Issue) {
153+
issue_indexer.UpdateIssueIndexer(ctx, issue.ID)
154+
}

templates/explore/repo_list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929
<div class="flex-item-trailing">
3030
{{if .PrimaryLanguage}}
31-
<a class="muted" href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}">
31+
<a class="muted" href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}{{if $.TabName}}&tab={{$.TabName}}{{end}}">
3232
<span class="flex-text-inline"><i class="color-icon gt-mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{.PrimaryLanguage.Language}}</span>
3333
</a>
3434
{{end}}

0 commit comments

Comments
 (0)