Skip to content

Commit 2ee876b

Browse files
committed
Merge branch 'master' of git://github.com/go-gitea/gitea
2 parents 56ad783 + cc384d7 commit 2ee876b

Some content is hidden

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

63 files changed

+1532
-1037
lines changed

.drone.yml

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ trigger:
455455

456456
depends_on:
457457
- testing
458-
- translations
459458

460459
steps:
461460
- name: fetch-tags
@@ -571,6 +570,15 @@ workspace:
571570
base: /go
572571
path: src/code.gitea.io/gitea
573572

573+
depends_on:
574+
- testing
575+
576+
trigger:
577+
ref:
578+
- refs/heads/master
579+
- "refs/tags/**"
580+
- "refs/pull/**"
581+
574582
steps:
575583
- name: fetch-tags
576584
pull: default
@@ -584,56 +592,28 @@ steps:
584592

585593
- name: dryrun
586594
pull: always
587-
image: plugins/docker:18.09
595+
image: plugins/docker:linux-amd64
588596
settings:
589-
cache_from: gitea/gitea
590597
dry_run: true
591598
repo: gitea/gitea
592599
when:
593600
event:
594601
- pull_request
595602

596-
- name: release
597-
pull: always
598-
image: plugins/docker:18.09
599-
settings:
600-
cache_from: gitea/gitea
601-
repo: gitea/gitea
602-
tags:
603-
- "${DRONE_BRANCH##release/v}"
604-
environment:
605-
DOCKER_PASSWORD:
606-
from_secret: docker_password
607-
DOCKER_USERNAME:
608-
from_secret: docker_username
609-
depends_on:
610-
- dryrun
611-
when:
612-
branch:
613-
- "release/*"
614-
event:
615-
- push
616-
617-
- name: latest
603+
- name: publish
618604
pull: always
619-
image: plugins/docker:18.09
605+
image: plugins/docker:linux-amd64
620606
settings:
621-
cache_from: gitea/gitea
622-
default_tags: true
607+
auto_tag: true
623608
repo: gitea/gitea
624-
environment:
625-
DOCKER_PASSWORD:
609+
password:
626610
from_secret: docker_password
627-
DOCKER_USERNAME:
611+
username:
628612
from_secret: docker_username
629-
depends_on:
630-
- dryrun
631613
when:
632-
branch:
633-
- master
634614
event:
635-
- push
636-
- tag
615+
exclude:
616+
- pull_request
637617

638618
---
639619
kind: pipeline

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ globals:
2323

2424
rules:
2525
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
26+
prefer-const: [2, {destructuring: all}]
27+
no-var: [2]

CONTRIBUTING.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [Translation](#translation)
1212
- [Code review](#code-review)
1313
- [Styleguide](#styleguide)
14-
- [Sign-off your work](#sign-off-your-work)
14+
- [Developer Certificate of Origin (DCO)](#developer-certificate-of-origin-dco)
1515
- [Release Cycle](#release-cycle)
1616
- [Maintainers](#maintainers)
1717
- [Owners](#owners)
@@ -77,7 +77,7 @@ Here's how to run the test suite:
7777
creates (a default AWS or GCE disk size won't work -- see
7878
[#6243](https://github.com/go-gitea/gitea/issues/6243)).
7979
- Change into the base directory of your copy of the gitea repository,
80-
and run `drone exec --local --build-event pull_request`.
80+
and run `drone exec --event pull_request`.
8181

8282
The drone version, command line, and disk requirements do change over
8383
time (see [#4053](https://github.com/go-gitea/gitea/issues/4053) and
@@ -157,22 +157,21 @@ import (
157157
)
158158
```
159159

160-
## Sign-off your work
160+
## Developer Certificate of Origin (DCO)
161161

162-
The sign-off is a simple line at the end of the explanation for the
163-
patch. Your signature certifies that you wrote the patch or otherwise
164-
have the right to pass it on as an open-source patch. The rules are
165-
pretty simple: If you can certify [DCO](DCO), then you just add a line
166-
to every git commit message:
162+
We consider the act of contributing to the code by submitting a Pull
163+
Request as the "Sign off" or agreement to the certifications and terms
164+
of the [DCO](DCO) and [MIT license](LICENSE). No further action is required.
165+
Additionally you could add a line at the end of your commit message.
167166

168167
```
169168
Signed-off-by: Joe Smith <[email protected]>
170169
```
171170

172-
Please use your real name; we really dislike pseudonyms or anonymous
173-
contributions. We are in the open-source world without secrets. If you
174-
set your `user.name` and `user.email` git configs, you can sign-off your
175-
commit automatically with `git commit -s`.
171+
If you set your `user.name` and `user.email` git configs, you can add the
172+
line to the end of your commit automatically with `git commit -s`.
173+
174+
We assume in good faith that the information you provide is legally binding.
176175

177176
## Release Cycle
178177

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ John Olheiser <[email protected]> (@jolheiser)
3030
Richard Mahn <[email protected]> (@richmahn)
3131
Mrsdizzie <[email protected]> (@mrsdizzie)
3232
silverwind <[email protected]> (@silverwind)
33+
Gary Kim <[email protected]> (@gary-kim)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[![GoDoc](https://godoc.org/code.gitea.io/gitea?status.svg)](https://godoc.org/code.gitea.io/gitea)
1111
[![GitHub release](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest)
1212
[![Help Contribute to Open Source](https://www.codetriage.com/go-gitea/gitea/badges/users.svg)](https://www.codetriage.com/go-gitea/gitea)
13-
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
13+
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backers/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
1414

1515
## Purpose
1616

README_ZH.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# Gitea - Git with a cup of tea
44

55
[![Build Status](https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg)](https://drone.gitea.io/go-gitea/gitea)
6-
[![Join the chat at https://img.shields.io/discord/322538954119184384.svg](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/NsatcWJ)
6+
[![Join the chat at https://img.shields.io/discord/322538954119184384.svg](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/gitea)
77
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
88
[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea)
99
[![Go Report Card](https://goreportcard.com/badge/code.gitea.io/gitea)](https://goreportcard.com/report/code.gitea.io/gitea)
1010
[![GoDoc](https://godoc.org/code.gitea.io/gitea?status.svg)](https://godoc.org/code.gitea.io/gitea)
1111
[![GitHub release](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest)
12-
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
12+
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backers/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
1313

1414
## 目标
1515

@@ -25,7 +25,7 @@ Gitea 的首要目标是创建一个极易安装,运行非常快速,安装
2525

2626
## 文档
2727

28-
关于如何安装请访问我们的 [文档站](https://docs.gitea.io/zh-cn/),如果没有找到对应的文档,你也可以通过 [Discord - 英文](https://discord.gg/NsatcWJ) 和 QQ群 328432459 来和我们交流。
28+
关于如何安装请访问我们的 [文档站](https://docs.gitea.io/zh-cn/),如果没有找到对应的文档,你也可以通过 [Discord - 英文](https://discord.gg/gitea) 和 QQ群 328432459 来和我们交流。
2929

3030
## 贡献流程
3131

custom/conf/app.ini.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ DB_RETRY_BACKOFF = 3s
281281
ISSUE_INDEXER_TYPE = bleve
282282
; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
283283
ISSUE_INDEXER_PATH = indexers/issues.bleve
284-
; Issue indexer queue, currently support: channel or levelqueue, default is levelqueue
284+
; Issue indexer queue, currently support: channel, levelqueue or redis, default is levelqueue
285285
ISSUE_INDEXER_QUEUE_TYPE = levelqueue
286286
; When ISSUE_INDEXER_QUEUE_TYPE is levelqueue, this will be the queue will be saved path,
287287
; default is indexers/issues.queue

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _Symbols used in table:_
6262
| Granular user roles (Code, Issues, Wiki etc) ||||||||
6363
| Verified Committer ||| ? |||||
6464
| GPG Signed Commits ||||||||
65-
| Reject unsigned commits | |||||||
65+
| Reject unsigned commits | [](https://github.com/go-gitea/gitea/issues/2770) |||||||
6666
| Repository Activity page ||||||||
6767
| Branch manager ||||||||
6868
| Create new branches ||||||||

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ If you want Apache HTTPD to serve your Gitea instance, you can add the following
5353
...
5454
ProxyPreserveHost On
5555
ProxyRequests off
56-
ProxyPass / http://localhost:3000/
56+
AllowEncodedSlashes NoDecode
57+
ProxyPass / http://localhost:3000/ nocanon
5758
ProxyPassReverse / http://localhost:3000/
5859
</VirtualHost>
5960
```
@@ -70,9 +71,10 @@ In case you already have a site, and you want Gitea to share the domain name, yo
7071
<Proxy *>
7172
Order allow,deny
7273
Allow from all
74+
AllowEncodedSlashes NoDecode
7375
</Proxy>
7476
75-
ProxyPass /git http://localhost:3000 # Note: no trailing slash after either /git or port
77+
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
7678
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
7779
</VirtualHost>
7880
```

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ server {
5454
...
5555
ProxyPreserveHost On
5656
ProxyRequests off
57-
ProxyPass / http://localhost:3000/
57+
AllowEncodedSlashes NoDecode
58+
ProxyPass / http://localhost:3000/ nocanon
5859
ProxyPassReverse / http://localhost:3000/
5960
</VirtualHost>
6061
```
@@ -71,9 +72,10 @@ server {
7172
<Proxy *>
7273
Order allow,deny
7374
Allow from all
75+
AllowEncodedSlashes NoDecode
7476
</Proxy>
7577
76-
ProxyPass /git http://localhost:3000 # Note: no trailing slash after either /git or port
78+
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
7779
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
7880
</VirtualHost>
7981
```

0 commit comments

Comments
 (0)