Skip to content

Commit ac9c64e

Browse files
authored
Merge branch 'main' into bugfix/issue-23809
2 parents af11b19 + 950c93a commit ac9c64e

Some content is hidden

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

67 files changed

+683
-344
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ generate-go: $(TAGS_PREREQ)
747747

748748
.PHONY: security-check
749749
security-check:
750-
go run $(GOVULNCHECK_PACKAGE) -v ./...
750+
go run $(GOVULNCHECK_PACKAGE) ./...
751751

752752
$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
753753
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@

docs/content/doc/administration/backup-and-restore.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2017-01-01T16:00:00+02:00"
3-
title: "Usage: Backup and Restore"
3+
title: "Backup and Restore"
44
slug: "backup-and-restore"
55
weight: 11
66
toc: false

docs/content/doc/administration/command-line.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2017-01-01T16:00:00+02:00"
3-
title: "Usage: Command Line"
3+
title: "Gitea Command Line"
44
slug: "command-line"
55
weight: 1
66
toc: false

docs/content/doc/administration/email-setup.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2019-10-15T10:10:00+05:00"
3-
title: "Usage: Email setup"
3+
title: "Email setup"
44
slug: "email-setup"
55
weight: 12
66
toc: false

docs/content/doc/administration/fail2ban-setup.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-05-11T11:00:00+02:00"
3-
title: "Usage: Setup fail2ban"
3+
title: "Fail2ban Setup "
44
slug: "fail2ban-setup"
55
weight: 16
66
toc: false

docs/content/doc/administration/fail2ban-setup.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2022-08-01T00:00:00+00:00"
3-
title: "使用: 设置 Fail2ban"
3+
title: "设置 Fail2ban"
44
slug: "fail2ban-setup"
55
weight: 16
66
toc: false

docs/content/doc/administration/git-lfs-support.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2019-10-06T08:00:00+05:00"
3-
title: "Usage: Git LFS setup"
3+
title: "Git LFS setup"
44
slug: "git-lfs-setup"
55
weight: 12
66
toc: false

docs/content/doc/administration/https-support.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-06-02T11:00:00+02:00"
3-
title: "Usage: HTTPS setup"
3+
title: "HTTPS setup"
44
slug: "https-setup"
55
weight: 12
66
toc: false

docs/content/doc/administration/logging-documentation.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2019-04-02T17:06:00+01:00"
3-
title: "Advanced: Logging Configuration"
3+
title: "Logging Configuration"
44
slug: "logging-configuration"
55
weight: 40
66
toc: false

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-05-22T11:00:00+00:00"
3-
title: "Usage: Reverse Proxies"
3+
title: "Reverse Proxies"
44
slug: "reverse-proxies"
55
weight: 16
66
toc: false

docs/content/doc/administration/search-engines-indexation.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2019-12-31T13:55:00+05:00"
3-
title: "Advanced: Search Engines Indexation"
3+
title: "Search Engines Indexation"
44
slug: "search-engines-indexation"
55
weight: 60
66
toc: false

docs/content/doc/installation/comparison.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-05-07T13:00:00+02:00"
3-
title: "Gitea compared to other Git hosting options"
3+
title: "Compared to other Git hosting"
44
slug: "comparison"
55
weight: 5
66
toc: false

docs/content/doc/installation/database-preparation.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ menu:
1515

1616
# Database Preparation
1717

18-
You need a database to use Gitea. Gitea supports PostgreSQL (>=10), MySQL (>=5.7), SQLite, and MSSQL (>=2008R2 SP3). This page will guide into preparing database. Only PostgreSQL and MySQL will be covered here since those database engines are widely-used in production.
18+
You need a database to use Gitea. Gitea supports PostgreSQL (>=10), MySQL (>=5.7), SQLite, and MSSQL (>=2008R2 SP3). This page will guide into preparing database. Only PostgreSQL and MySQL will be covered here since those database engines are widely-used in production. If you plan to use SQLite, you can ignore this chapter.
1919

2020
Database instance can be on same machine as Gitea (local database setup), or on different machine (remote database).
2121

docs/content/doc/installation/from-package.en-us.md

+16-14
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,25 @@ menu:
1313
identifier: "install-from-package"
1414
---
1515

16-
# Installation from package
17-
1816
**Table of Contents**
1917

2018
{{< toc >}}
2119

20+
# Official packages
21+
22+
## macOS
23+
24+
Currently, the only supported method of installation on MacOS is [Homebrew](http://brew.sh/).
25+
Following the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide may work,
26+
but is not supported. To install Gitea via `brew`:
27+
28+
```
29+
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
30+
brew install gitea
31+
```
32+
33+
# Unofficial packages
34+
2235
## Alpine Linux
2336

2437
Alpine Linux has [Gitea](https://pkgs.alpinelinux.org/packages?name=gitea&branch=edge) in its community repository which follows the latest stable version.
@@ -74,17 +87,6 @@ choco install gitea
7487

7588
Or follow the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide.
7689

77-
## macOS
78-
79-
Currently, the only supported method of installation on MacOS is [Homebrew](http://brew.sh/).
80-
Following the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide may work,
81-
but is not supported. To install Gitea via `brew`:
82-
83-
```
84-
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
85-
brew install gitea
86-
```
87-
8890
## FreeBSD
8991

9092
A FreeBSD port `www/gitea` is available. To install the pre-built binary package:
@@ -108,7 +110,7 @@ is in `/usr/local/etc/rc.d/gitea`.
108110

109111
To enable Gitea to run as a service, run `sysrc gitea_enable=YES` and start it with `service gitea start`.
110112

111-
## Third-party
113+
## Others
112114

113115
Various other third-party packages of Gitea exist.
114116
To see a curated list, head over to [awesome-gitea](https://gitea.com/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages).

docs/content/doc/installation/from-package.zh-cn.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,23 @@ menu:
1313
identifier: "install-from-package"
1414
---
1515

16-
# 使用包管理器安装
17-
1816
**目录**
1917

2018
{{< toc >}}
2119

20+
# 官方包管理器
21+
22+
## macOS
23+
24+
macOS 平台下当前我们仅支持通过 `brew` 来安装。如果你没有安装 [Homebrew](http://brew.sh/),你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令:
25+
26+
```
27+
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
28+
brew install gitea
29+
```
30+
31+
# 非官方包管理器
32+
2233
## Alpine Linux
2334

2435
Gitea 已经包含在 Alpine Linux 的[社区存储库](https://pkgs.alpinelinux.org/packages?name=gitea&branch=edge)中,版本与 Gitea 官方保持同步。
@@ -66,15 +77,6 @@ choco install gitea
6677

6778
你也可以 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}}) 。
6879

69-
## macOS
70-
71-
macOS 平台下当前我们仅支持通过 `brew` 来安装。如果你没有安装 [Homebrew](http://brew.sh/),你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令:
72-
73-
```
74-
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
75-
brew install gitea
76-
```
77-
7880
## FreeBSD
7981

8082
可以使用 Gitea 的 FreeBSD port `www/gitea`。 请安装预构建的二进制包:

docs/content/doc/usage/agit-support.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: " 2022-09-01T20:50:42+0000"
3-
title: "Usage: Agit Setup"
3+
title: "Agit Setup"
44
slug: "agit-setup"
55
weight: 12
66
toc: false

docs/content/doc/usage/issue-pull-request-templates.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-05-10T16:00:00+02:00"
3-
title: "Usage: Issue and Pull Request templates"
3+
title: "Issue and Pull Request templates"
44
slug: "issue-pull-request-templates"
55
weight: 15
66
toc: false

docs/content/doc/usage/labels.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2023-03-04T19:00:00+00:00"
3-
title: "Usage: Labels"
3+
title: "Labels"
44
slug: "labels"
55
weight: 13
66
toc: false

docs/content/doc/usage/linked-references.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2019-11-21T17:00:00-03:00"
3-
title: "Usage: Automatically Linked References"
3+
title: "Automatically Linked References"
44
slug: "automatically-linked-references"
55
weight: 15
66
toc: false

docs/content/doc/usage/merge-message-templates.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2022-08-31T17:35:40+08:00"
3-
title: "Usage: Merge Message templates"
3+
title: "Merge Message templates"
44
slug: "merge-message-templates"
55
weight: 15
66
toc: false

docs/content/doc/usage/pull-request.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-06-01T19:00:00+02:00"
3-
title: "Usage: Pull Request"
3+
title: "Pull Request"
44
slug: "pull-request"
55
weight: 13
66
toc: false

docs/content/doc/usage/pull-request.zh-tw.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
date: "2018-06-01T19:00:00+02:00"
3-
title: "使用: 合併請求"
3+
title: "合併請求"
44
slug: "pull-request"
55
weight: 13
66
toc: false

docs/content/doc/usage/push-options.en-us.md

-33
This file was deleted.

docs/content/doc/usage/push-options.zh-tw.md

-33
This file was deleted.

docs/content/doc/usage/push-to-create.en-us.md docs/content/doc/usage/push.en-us.md

+38-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,51 @@
11
---
22
date: "2020-07-06T16:00:00+02:00"
3-
title: "Usage: Push To Create"
4-
slug: "push-to-create"
3+
title: "Usage: Push"
4+
slug: "push"
55
weight: 15
66
toc: false
77
draft: false
88
menu:
99
sidebar:
1010
parent: "usage"
11-
name: "Push To Create"
11+
name: "Push"
1212
weight: 15
13-
identifier: "push-to-create"
13+
identifier: "push"
1414
---
1515

16+
**Table of Contents**
17+
18+
{{< toc >}}
19+
20+
There are some additional features when pushing commits to Gitea server.
21+
22+
# Open PR through Push
23+
24+
When you push commits to a non-default branch for the first time,
25+
you will receive a link you can click on to visit the compare page of your branch compared to your main branch.
26+
From there, it's easy to create a pull request, even if you want to target another branch.
27+
28+
![Gitea Push Hint](/gitea-push-hint.png)
29+
30+
# Push Options
31+
32+
In Gitea `1.13`, support for some [push options](https://git-scm.com/docs/git-push#Documentation/git-push.txt--oltoptiongt)
33+
were added.
34+
35+
## Supported Options
36+
37+
- `repo.private` (true|false) - Change the repository's visibility.
38+
39+
This is particularly useful when combined with push-to-create.
40+
41+
- `repo.template` (true|false) - Change whether the repository is a template.
42+
43+
Example of changing a repository's visibility to public:
44+
45+
```shell
46+
git push -o repo.private=false -u origin main
47+
```
48+
1649
# Push To Create
1750

1851
Push to create is a feature that allows you to push to a repository that does not exist yet in Gitea. This is useful for automation and for allowing users to create repositories without having to go through the web interface. This feature is disabled by default.
@@ -35,6 +68,4 @@ git push -u origin main
3568

3669
This assumes you are using an SSH remote, but you can also use HTTPS remotes as well.
3770

38-
## Push options (bonus)
39-
40-
Push-to-create will default to the visibility defined by `DEFAULT_PUSH_CREATE_PRIVATE` in `app.ini`. To explicitly set the visibility, you can use a [push option]({{< relref "doc/usage/push-options.en-us.md" >}}).
71+
Push-to-create will default to the visibility defined by `DEFAULT_PUSH_CREATE_PRIVATE` in `app.ini`.

0 commit comments

Comments
 (0)