Skip to content

Commit 14b6bef

Browse files
committed
Merge branch 'master' of https://github.com/go-gitea/gitea into prunehooktask
2 parents d57a65f + bc05ddc commit 14b6bef

File tree

557 files changed

+16493
-13948
lines changed

Some content is hidden

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

557 files changed

+16493
-13948
lines changed

.drone.yml

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ workspace:
1010
base: /go
1111
path: src/code.gitea.io/gitea
1212

13+
trigger:
14+
event:
15+
- push
16+
- tag
17+
- pull_request
18+
1319
steps:
1420
- name: deps-frontend
1521
pull: always
@@ -131,6 +137,12 @@ platform:
131137
depends_on:
132138
- compliance
133139

140+
trigger:
141+
event:
142+
- push
143+
- tag
144+
- pull_request
145+
134146
workspace:
135147
base: /go
136148
path: src/code.gitea.io/gitea
@@ -164,7 +176,7 @@ services:
164176
image: elasticsearch:7.5.0
165177

166178
- name: minio
167-
image: minio/minio:RELEASE.2020-10-09T22-55-05Z
179+
image: minio/minio:RELEASE.2021-01-16T02-19-44Z
168180
commands:
169181
- minio server /data
170182
environment:
@@ -306,6 +318,12 @@ platform:
306318
depends_on:
307319
- compliance
308320

321+
trigger:
322+
event:
323+
- push
324+
- tag
325+
- pull_request
326+
309327
workspace:
310328
base: /go
311329
path: src/code.gitea.io/gitea
@@ -433,6 +451,45 @@ steps:
433451
CROWDIN_KEY:
434452
from_secret: crowdin_key
435453

454+
---
455+
kind: pipeline
456+
name: update_gitignore_and_licenses
457+
458+
platform:
459+
os: linux
460+
arch: amd64
461+
462+
workspace:
463+
base: /go
464+
path: src/code.gitea.io/gitea
465+
466+
trigger:
467+
branch:
468+
- master
469+
event:
470+
- cron
471+
cron:
472+
- update_gitignore_and_licenses
473+
474+
steps:
475+
- name: download
476+
image: golang:1.15
477+
commands:
478+
- timeout -s ABRT 40m make generate-license generate-gitignore
479+
480+
- name: push
481+
pull: always
482+
image: appleboy/drone-git-push
483+
settings:
484+
author_email: "[email protected]"
485+
author_name: GiteaBot
486+
commit: true
487+
commit_message: "[skip ci] Updated licenses and gitignores "
488+
remote: "[email protected]:go-gitea/gitea.git"
489+
environment:
490+
GIT_PUSH_SSH_KEY:
491+
from_secret: git_push_ssh_key
492+
436493
---
437494
kind: pipeline
438495
name: release-latest
@@ -623,6 +680,12 @@ platform:
623680
depends_on:
624681
- compliance
625682

683+
trigger:
684+
event:
685+
- push
686+
- tag
687+
- pull_request
688+
626689
steps:
627690
- name: build-docs
628691
pull: always

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ pr\#%: clean-all
709709
golangci-lint:
710710
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
711711
export BINARY="golangci-lint"; \
712-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.31.0; \
712+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.35.2; \
713713
fi
714714
golangci-lint run --timeout 10m
715715

custom/conf/app.example.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,8 @@ AUTO_WATCH_NEW_REPOS = true
688688
; Default value for AutoWatchOnChanges
689689
; Make the user watch a repository When they commit for the first time
690690
AUTO_WATCH_ON_CHANGES = false
691-
; Default value for the minimum age a user has to exist before deletion to keep issue comments.
692-
; If a user deletes his account before that amount of days, his comments will be deleted as well.
693-
USER_DELETE_WITH_COMMENTS_MAX_DAYS = 0
691+
; Minimum amount of time a user must exist before comments are kept when the user is deleted.
692+
USER_DELETE_WITH_COMMENTS_MAX_TIME = 0
694693

695694
[webhook]
696695
; Hook task queue length, increase if webhook shooting starts hanging

docs/config.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,50 @@ languages:
359359
url: https://discourse.gitea.io/
360360
weight: 80
361361
pre: group
362+
363+
de-de:
364+
weight: 7
365+
languageName: Deutsch
366+
menu:
367+
page:
368+
- name: Webseite
369+
url: https://gitea.io/en-us/
370+
weight: 10
371+
pre: home
372+
post: active
373+
- name: Dokumentation
374+
url: /de-de/
375+
weight: 20
376+
pre: question
377+
- name: API
378+
url: https://try.gitea.io/api/swagger
379+
weight: 45
380+
pre: plug
381+
- name: Blog
382+
url: https://blog.gitea.io/
383+
weight: 30
384+
pre: rss
385+
- name: Code
386+
url: https://code.gitea.io/
387+
weight: 40
388+
pre: code
389+
- name: Übersetzung
390+
url: https://crowdin.com/project/gitea
391+
weight: 41
392+
pre: language
393+
- name: Downloads
394+
url: https://dl.gitea.io/
395+
weight: 50
396+
pre: download
397+
- name: GitHub
398+
url: https://github.com/go-gitea/
399+
weight: 60
400+
pre: github
401+
- name: Discord Chat
402+
url: https://discord.gg/Gitea
403+
weight: 70
404+
pre: comment
405+
- name: Forum
406+
url: https://discourse.gitea.io/
407+
weight: 80
408+
pre: group

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ relation to port exhaustion.
474474
- `ALLOW_ONLY_EXTERNAL_REGISTRATION`: **false** Set to true to force registration only using third-party services.
475475
- `NO_REPLY_ADDRESS`: **DOMAIN** Default value for the domain part of the user's email address in the git log if he has set KeepEmailPrivate to true.
476476
The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
477-
- `USER_DELETE_WITH_COMMENTS_MAX_DAYS`: **0** If a user deletes his account before that amount of days, his comments will be deleted as well.
477+
- `USER_DELETE_WITH_COMMENTS_MAX_TIME`: **0** Minimum amount of time a user must exist before comments are kept when the user is deleted.
478478

479479
## SSH Minimum Key Sizes (`ssh.minimum_key_sizes`)
480480

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Arch Linux ARM provides packages for [aarch64](https://archlinuxarm.org/packages
4343
pacman -S gitea
4444
```
4545

46+
## SUSE and openSUSE
47+
48+
OpenSUSE build service provides packages for [openSUSE and SLE](https://software.opensuse.org/download/package?package=gitea&project=devel%3Atools%3Ascm)
49+
in the Development Software Configuration Management Repository
50+
4651
## Windows
4752

4853
There is a [Gitea](https://chocolatey.org/packages/gitea) package for Windows by [Chocolatey](https://chocolatey.org/).

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,23 @@ ports:
345345
- "127.0.0.1:2222:22"
346346
```
347347

348-
In addition, `/home/git/.ssh/authorized_keys` on the host needs to be modified. It needs to act in the same way as `authorized_keys` within the Gitea container. Therefore add
348+
In addition, `/home/git/.ssh/authorized_keys` on the host needs to be modified. It needs to act in the same way as `authorized_keys` within the Gitea container. Therefore add the public key of the key you created above ("Gitea Host Key") to `~/git/.ssh/authorized_keys`.
349+
This can be done via `echo "$(cat /home/git/.ssh/id_rsa.pub)" >> /home/git/.ssh/authorized_keys`.
350+
Important: The pubkey from the `git` user needs to be added "as is" while all other pubkeys added via the Gitea web interface will be prefixed with `command="/app [...]`.
349351

350-
```bash
351-
command="/app/gitea/gitea --config=/data/gitea/conf/app.ini serv key-1",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa <YOUR_SSH_PUBKEY>
352-
```
352+
The file should then look somewhat like
353353

354-
and replace `<YOUR_SSH_PUBKEY>` with a valid SSH public key of yours.
354+
```bash
355+
# SSH pubkey from git user
356+
ssh-rsa <Gitea Host Key>
355357

356-
In addition the public key of the `git` user on the host needs to be added to `/home/git/.ssh/authorized_keys` so authentication against the container can succeed: `echo "$(cat /home/git/.ssh/id_rsa.pub)" >> /home/git/.ssh/authorized_keys`.
358+
# other keys from users
359+
command="/app/gitea/gitea --config=/data/gitea/conf/app.ini serv key-1",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty <user pubkey>
360+
```
357361

358362
Here is a detailed explanation what is happening when a SSH request is made:
359363

360-
1. A SSH request is made against the host using the `git` user, e.g. `git clone git@domain:user/repo.git`.
364+
1. A SSH request is made against the host (usually port 22) using the `git` user, e.g. `git clone git@domain:user/repo.git`.
361365
2. In `/home/git/.ssh/authorized_keys` , the command executes the `/app/gitea/gitea` script.
362366
3. `/app/gitea/gitea` forwards the SSH request to port 2222 which is mapped to the SSH port (22) of the container.
363367
4. Due to the existence of the public key of the `git` user in `/home/git/.ssh/authorized_keys` the authentication host → container succeeds and the SSH request get forwarded to Gitea running in the docker container.

docs/content/doc/translation.de-de.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
date: "2021-01-22T00:00:00+02:00"
3+
title: "Übersetzung"
4+
slug: "translation"
5+
weight: 35
6+
toc: false
7+
draft: false
8+
menu:
9+
sidebar:
10+
name: "Übersetzung"
11+
weight: 45
12+
identifier: "translation"
13+
---

docs/content/doc/translation.en-us.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
date: "2021-01-22T00:00:00+02:00"
3+
title: "Translation"
4+
slug: "translation"
5+
weight: 35
6+
toc: false
7+
draft: false
8+
menu:
9+
sidebar:
10+
name: "Translation"
11+
weight: 45
12+
identifier: "translation"
13+
---
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
date: "2021-01-22T00:00:00+02:00"
3+
title: "Übersetzungs Richtlinien"
4+
weight: 10
5+
toc: true
6+
draft: false
7+
menu:
8+
sidebar:
9+
parent: "translation"
10+
name: "Übersetzungsrichtlinien"
11+
weight: 70
12+
identifier: "translation-guidelines"
13+
---
14+
15+
## Allgemeines
16+
17+
Anrede: Wenig förmlich:
18+
* "Du"-Form
19+
* Keine "Amtsdeusch"-Umschreibungen, einfach so als ob man den Nutzer direkt persönlich ansprechen würde
20+
21+
Genauer definiert:
22+
* "falsch" anstatt "nicht korrekt/inkorrekt"
23+
* Benutzerkonto oder Konto? Oder Account?
24+
* "Wende dich an ..." anstatt "kontaktiere ..."
25+
* In der selben Zeit übersetzen (sonst wird aus "is" "war")
26+
* Richtige Anführungszeichen verwenden. Also `"` statt `''` oder `'` oder \` oder `´`
27+
* `` für beginnende Anführungszeichen, `` für schließende Anführungszeichen
28+
29+
Es gelten Artikel und Worttrennungen aus dem Duden.
30+
31+
## Formulierungen in Modals und Buttons
32+
33+
Es sollten die gleichen Formulierungen auf Buttons und Modals verwendet werden.
34+
35+
Beispiel: Wenn der Button mit `löschen` beschriftet ist, sollte im Modal die Frage lauten `Willst du das wirklich löschen?` und nicht `Willst du das wirklich entfernen?`. Gleiches gilt für Success/Errormeldungen nach der Aktion.
36+
37+
## Trennungen
38+
39+
* Pull-Request
40+
* Time-Tracker
41+
* E-Mail-Adresse (siehe Duden)
42+
43+
## Artikeldefinitionen für Anglizismen
44+
45+
* _Der_ Commit (m.)
46+
* _Der_ Branch (m.)
47+
* _Das_ Issue (n.)
48+
* _Der_ Fork (m.)
49+
* _Das_ Repository (n.)
50+
* _Der_ Pull-Request (m.)
51+
* _Der_ Token (m.)
52+
* _Das_ Review (n.)
53+
* _Der_ Key (m.)
54+
* _Der_ Committer (m.)
55+
56+
## Weiterführende Links
57+
58+
Diese beiden Links sind sehr empfehlenswert:
59+
60+
* http://docs.translatehouse.org/projects/localization-guide/en/latest/guide/translation_guidelines_german.html
61+
* https://docs.qgis.org/2.18/en/docs/documentation_guidelines/do_translations.html
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
date: "2021-01-22T00:00:00+02:00"
3+
title: "Translation Guidelines"
4+
weight: 10
5+
toc: true
6+
draft: false
7+
menu:
8+
sidebar:
9+
parent: "translation"
10+
name: "Translation Guidelines"
11+
weight: 70
12+
identifier: "translation-guidelines"
13+
---
14+
15+
This place is used to provide a common set of rules to make sure the translation is consistent.
16+
17+
* [German](/de-de/übersetzungs-richtlinien/)

docs/content/page/index.de-de.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
date: "2016-11-08T16:00:00+02:00"
3+
title: "Dokumentation"
4+
slug: "documentation"
5+
url: "/de-de/"
6+
weight: 10
7+
toc: false
8+
draft: false
9+
---
10+
11+
# Was ist Gitea?
12+
13+
Gitea ist ein einfacher, selbst gehosteter Git-Service. Änlich wie GitHub, Bitbucket oder GitLab.
14+
Gitea ist ein [Gogs](http://gogs.io)-Fork.
15+
16+
## Ziele
17+
18+
* Einfach zu installieren
19+
* Plattformübergreifend
20+
* Leichtgewichtig
21+
* Quelloffen
22+
23+
## System Voraussetzungen
24+
25+
- A Raspberry Pi 3 is powerful enough to run Gitea for small workloads.
26+
- 2 CPU cores and 1GB RAM is typically sufficient for small teams/projects.
27+
- Gitea should be run with a dedicated non-root system account on UNIX-type systems.
28+
- Note: Gitea manages the `~/.ssh/authorized_keys` file. Running Gitea as a regular user could break that user's ability to log in.
29+
- [Git](https://git-scm.com/) version 1.7.2 or later is required. Version 1.9.0 or later is recommended. Also please note:
30+
- Git [large file storage](https://git-lfs.github.com/) will be available if enabled when git >= 2.1.2.
31+
- Git commit-graph rendering will be enabled automatically when git >= 2.18.
32+
33+
## Browser Unterstützung
34+
35+
- Letzten 2 Versions von Chrome, Firefox, Safari, Edge (EdgeHTML) and Edge (Chromium)
36+
- Firefox ESR

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ require (
4646
github.com/gobwas/glob v0.2.3
4747
github.com/gogs/chardet v0.0.0-20191104214054-4b6791f73a28
4848
github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14
49+
github.com/gogs/go-gogs-client v0.0.0-20200905025246-8bb8a50cb355
4950
github.com/google/go-github/v32 v32.1.0
5051
github.com/google/uuid v1.1.2
5152
github.com/gorilla/context v1.1.1
@@ -128,3 +129,5 @@ require (
128129
replace github.com/hashicorp/go-version => github.com/6543/go-version v1.2.4
129130

130131
replace github.com/microcosm-cc/bluemonday => github.com/lunny/bluemonday v1.0.5-0.20201227154428-ca34796141e8
132+
133+
replace github.com/gogs/go-gogs-client => github.com/6543-forks/go-gogs-client v0.0.0-20210116182316-f2f8bc0ea9cc

0 commit comments

Comments
 (0)