Skip to content

Commit 5134f1c

Browse files
Merge branch 'main' into add-status-popup-to-issuelist
2 parents 4dd46f4 + 225044e commit 5134f1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2243
-72
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,41 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.16.6](https://github.com/go-gitea/gitea/releases/tag/v1.16.6) - 2022-04-20
8+
9+
* ENHANCEMENTS
10+
* Only request write when necessary (#18657) (#19422)
11+
* Disable service worker by default (#18914) (#19342)
12+
* BUGFIXES
13+
* When dumping trim the standard suffices instead of a random suffix (#19440) (#19447)
14+
* Fix DELETE request for non-existent public key (#19443) (#19444)
15+
* Don't panic on ErrEmailInvalid (#19441) (#19442)
16+
* Add uploadpack.allowAnySHA1InWant to allow --filter=blob:none with older git clients (#19430) (#19438)
17+
* Warn on SSH connection for incorrect configuration (#19317) (#19437)
18+
* Search Issues via API, dont show 500 if filter result in empty list (#19244) (#19436)
19+
* When updating mirror repo intervals by API reschedule next update too (#19429) (#19433)
20+
* Fix nil error when some pages are rendered outside request context (#19427) (#19428)
21+
* Fix double blob-hunk on diff page (#19404) (#19405)
22+
* Don't allow merging PR's which are being conflict checked (#19357) (#19358)
23+
* Fix middleware function's placements (#19377) (#19378)
24+
* Fix invalid CSRF token bug, make sure CSRF tokens can be up-to-date (#19338)
25+
* Restore user autoregistration with email addresses (#19261) (#19312)
26+
* Move checks for pulls before merge into own function (#19271) (#19277)
27+
* Granular webhook events in editHook (#19251) (#19257)
28+
* Only send webhook events to active system webhooks and only deliver to active hooks (#19234) (#19248)
29+
* Use full output of git show-ref --tags to get tags for PushUpdateAddTag (#19235) (#19236)
30+
* Touch mirrors on even on fail to update (#19217) (#19233)
31+
* Hide sensitive content on admin panel progress monitor (#19218 & #19226) (#19231)
32+
* Fix clone url JS error for the empty repo page (#19209)
33+
* Bump goldmark to v1.4.11 (#19201) (#19203)
34+
* TESTING
35+
* Prevent intermittent failures in RepoIndexerTest (#19225 #19229) (#19228)
36+
* BUILD
37+
* Revert the minimal golang version requirement from 1.17 to 1.16 and add a warning in Makefile (#19319)
38+
* MISC
39+
* Performance improvement for add team user when org has more than 1000 repositories (#19227) (#19289)
40+
* Check go and nodejs version by go.mod and package.json (#19197) (#19254)
41+
742
## [1.16.5](https://github.com/go-gitea/gitea/releases/tag/v1.16.5) - 2022-03-23
843

944
* BREAKING

cmd/dump.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (o outputType) String() string {
8686
}
8787

8888
var outputTypeEnum = &outputType{
89-
Enum: []string{"zip", "rar", "tar", "sz", "tar.gz", "tar.xz", "tar.bz2", "tar.br", "tar.lz4"},
89+
Enum: []string{"zip", "tar", "tar.sz", "tar.gz", "tar.xz", "tar.bz2", "tar.br", "tar.lz4"},
9090
Default: "zip",
9191
}
9292

@@ -160,7 +160,12 @@ func runDump(ctx *cli.Context) error {
160160
fatal("Deleting default logger failed. Can not write to stdout: %v", err)
161161
}
162162
} else {
163-
fileName = strings.TrimSuffix(fileName, path.Ext(fileName))
163+
for _, suffix := range outputTypeEnum.Enum {
164+
if strings.HasSuffix(fileName, "."+suffix) {
165+
fileName = strings.TrimSuffix(fileName, "."+suffix)
166+
break
167+
}
168+
}
164169
fileName += "." + outType
165170
}
166171
setting.LoadFromExisting()

docs/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ params:
1818
description: Git with a cup of tea
1919
author: The Gitea Authors
2020
website: https://docs.gitea.io
21-
version: 1.16.5
21+
version: 1.16.6
2222
minGoVersion: 1.17
2323
goVersion: 1.18
24-
minNodeVersion: 12.17
24+
minNodeVersion: 14
2525

2626
outputs:
2727
home:

docs/content/doc/installation/with-docker-rootless.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ services:
147147
+ - db
148148
+
149149
+ db:
150-
+ image: postgres:13
150+
+ image: postgres:14
151151
+ restart: always
152152
+ environment:
153153
+ - POSTGRES_USER=gitea

docs/content/doc/installation/with-docker.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ services:
187187
+ - db
188188
+
189189
+ db:
190-
+ image: postgres:13
190+
+ image: postgres:14
191191
+ restart: always
192192
+ environment:
193193
+ - POSTGRES_USER=gitea

docs/content/doc/installation/with-docker.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ services:
172172
+ - db
173173
+
174174
+ db:
175-
+ image: postgres:13
175+
+ image: postgres:14
176176
+ restart: always
177177
+ environment:
178178
+ - POSTGRES_USER=gitea
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
date: "2022-04-14T00:00:00+00:00"
3+
title: "Helm Chart Registry"
4+
slug: "packages/helm"
5+
draft: false
6+
toc: false
7+
menu:
8+
sidebar:
9+
parent: "packages"
10+
name: "Helm"
11+
weight: 50
12+
identifier: "helm"
13+
---
14+
15+
# Helm Chart Registry
16+
17+
Publish [Helm](https://helm.sh/) charts for your user or organization.
18+
19+
**Table of Contents**
20+
21+
{{< toc >}}
22+
23+
## Requirements
24+
25+
To work with the Helm Chart registry use a simple HTTP client like `curl` or the [`helm cm-push`](https://github.com/chartmuseum/helm-push/) plugin.
26+
27+
## Publish a package
28+
29+
Publish a package by running the following command:
30+
31+
```shell
32+
curl --user {username}:{password} -X POST --upload-file ./{chart_file}.tgz https://gitea.example.com/api/packages/{owner}/helm/api/charts
33+
```
34+
35+
or with the `helm cm-push` plugin:
36+
37+
```shell
38+
helm repo add --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm
39+
helm cm-push ./{chart_file}.tgz {repo}
40+
```
41+
42+
| Parameter | Description |
43+
| ------------ | ----------- |
44+
| `username` | Your Gitea username. |
45+
| `password` | Your Gitea password or a personal access token. |
46+
| `repo` | The name for the repository. |
47+
| `chart_file` | The Helm Chart archive. |
48+
| `owner` | The owner of the package. |
49+
50+
## Install a package
51+
52+
To install a Helm char from the registry, execute the following command:
53+
54+
```shell
55+
helm repo add --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm
56+
helm repo update
57+
helm install {name} {repo}/{chart}
58+
```
59+
60+
| Parameter | Description |
61+
| ---------- | ----------- |
62+
| `username` | Your Gitea username. |
63+
| `password` | Your Gitea password or a personal access token. |
64+
| `repo` | The name for the repository. |
65+
| `owner` | The owner of the package. |
66+
| `name` | The local name. |
67+
| `chart` | The name Helm Chart. |

docs/content/doc/packages/maven.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu:
88
sidebar:
99
parent: "packages"
1010
name: "Maven"
11-
weight: 50
11+
weight: 60
1212
identifier: "maven"
1313
---
1414

docs/content/doc/packages/npm.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu:
88
sidebar:
99
parent: "packages"
1010
name: "npm"
11-
weight: 60
11+
weight: 70
1212
identifier: "npm"
1313
---
1414

docs/content/doc/packages/nuget.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu:
88
sidebar:
99
parent: "packages"
1010
name: "NuGet"
11-
weight: 70
11+
weight: 80
1212
identifier: "nuget"
1313
---
1414

docs/content/doc/packages/overview.en-us.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The following package managers are currently supported:
3030
| [Conan]({{< relref "doc/packages/conan.en-us.md" >}}) | C++ | `conan` |
3131
| [Container]({{< relref "doc/packages/container.en-us.md" >}}) | - | any OCI compliant client |
3232
| [Generic]({{< relref "doc/packages/generic.en-us.md" >}}) | - | any HTTP client |
33+
| [Helm]({{< relref "doc/packages/helm.en-us.md" >}}) | - | any HTTP client, `cm-push` |
3334
| [Maven]({{< relref "doc/packages/maven.en-us.md" >}}) | Java | `mvn`, `gradle` |
3435
| [npm]({{< relref "doc/packages/npm.en-us.md" >}}) | JavaScript | `npm`, `yarn` |
3536
| [NuGet]({{< relref "doc/packages/nuget.en-us.md" >}}) | .NET | `nuget` |

docs/content/doc/packages/pypi.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu:
88
sidebar:
99
parent: "packages"
1010
name: "PyPI"
11-
weight: 80
11+
weight: 90
1212
identifier: "pypi"
1313
---
1414

docs/content/doc/packages/rubygems.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ menu:
88
sidebar:
99
parent: "packages"
1010
name: "RubyGems"
11-
weight: 90
11+
weight: 100
1212
identifier: "rubygems"
1313
---
1414

docs/content/doc/usage/reverse-proxies.en-us.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,18 @@ The added http-request will automatically add a trailing slash if needed and int
348348

349349
Then you **MUST** set something like `[server] ROOT_URL = http://example.com/gitea/` correctly in your configuration.
350350

351+
## Traefik
352+
353+
If you want traefik to serve your Gitea instance, you can add the following label section to your `docker-compose.yaml` (Assuming the provider is docker).
354+
355+
```yaml
356+
gitea:
357+
image: gitea/gitea
358+
...
359+
labels:
360+
- "traefik.enable=true"
361+
- "traefik.http.routers.gitea.rule=Host(`example.com`)"
362+
- "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000"
363+
```
364+
365+
This config assumes that you are handling HTTPS on the traefik side and using HTTP between Gitea and traefik.

docs/content/doc/usage/reverse-proxies.zh-cn.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,19 @@ git.example.com {
106106
```
107107

108108
然后您**必须**在 Gitea 的配置文件中正确的添加类似 `[server] ROOT_URL = http://git.example.com/git/` 的配置项。
109+
110+
## 使用 Traefik 作为反向代理服务
111+
112+
如果您想使用 traefik 作为 Gitea 的反向代理服务,您可以在 `docker-compose.yaml` 中添加 label 部分(假设使用 docker 作为 traefik 的 provider):
113+
114+
```yaml
115+
gitea:
116+
image: gitea/gitea
117+
...
118+
labels:
119+
- "traefik.enable=true"
120+
- "traefik.http.routers.gitea.rule=Host(`example.com`)"
121+
- "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000"
122+
```
123+
124+
这份配置假设您使用 traefik 来处理 HTTPS 服务,并在其和 Gitea 之间使用 HTTP 进行通信。

integrations/README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ TEST_MYSQL_HOST=localhost:3306 TEST_MYSQL_DBNAME=test TEST_MYSQL_USERNAME=root T
3636
## 如何使用 pgsql 数据库进行集成测试
3737
同上,首先在 docker 容器里部署一个 pgsql 数据库
3838
```
39-
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:13 #(just ctrl-c to stop db and clean the container)
39+
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:14 #(just ctrl-c to stop db and clean the container)
4040
```
4141
之后便可以基于这个数据库进行集成测试
4242
```

0 commit comments

Comments
 (0)