Skip to content

Commit 5e47ec1

Browse files
committed
Merge branch 'master' of https://github.com/go-gitea/gitea
2 parents c1c81c2 + 63ff616 commit 5e47ec1

File tree

306 files changed

+8181
-13201
lines changed

Some content is hidden

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

306 files changed

+8181
-13201
lines changed

.drone.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ steps:
7272

7373
- name: build-linux-386
7474
pull: always
75-
image: golang:1.12
75+
image: golang:1.13
7676
environment:
7777
GO111MODULE: on
7878
GOPROXY: off
@@ -83,7 +83,7 @@ steps:
8383

8484
- name: build
8585
pull: always
86-
image: golang:1.12
86+
image: golang:1.13
8787
commands:
8888
- make clean
8989
- make generate
@@ -100,7 +100,7 @@ steps:
100100

101101
- name: unit-test
102102
pull: always
103-
image: golang:1.12
103+
image: golang:1.13
104104
commands:
105105
- make unit-test-coverage
106106
environment:
@@ -117,7 +117,7 @@ steps:
117117

118118
- name: release-test
119119
pull: always
120-
image: golang:1.12
120+
image: golang:1.13
121121
commands:
122122
- make test
123123
environment:
@@ -145,7 +145,7 @@ steps:
145145

146146
- name: tag-test
147147
pull: always
148-
image: golang:1.12
148+
image: golang:1.13
149149
commands:
150150
- make test
151151
environment:
@@ -159,7 +159,7 @@ steps:
159159

160160
- name: test-sqlite
161161
pull: always
162-
image: golang:1.12
162+
image: golang:1.13
163163
commands:
164164
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
165165
- apt-get install -y git-lfs
@@ -173,7 +173,7 @@ steps:
173173

174174
- name: test-mysql
175175
pull: always
176-
image: golang:1.12
176+
image: golang:1.13
177177
commands:
178178
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
179179
- apt-get install -y git-lfs
@@ -194,7 +194,7 @@ steps:
194194

195195
- name: tag-test-mysql
196196
pull: always
197-
image: golang:1.12
197+
image: golang:1.13
198198
commands:
199199
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
200200
- apt-get install -y git-lfs
@@ -212,7 +212,7 @@ steps:
212212

213213
- name: test-mysql8
214214
pull: always
215-
image: golang:1.12
215+
image: golang:1.13
216216
commands:
217217
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
218218
- apt-get install -y git-lfs
@@ -227,7 +227,7 @@ steps:
227227

228228
- name: test-pgsql
229229
pull: always
230-
image: golang:1.12
230+
image: golang:1.13
231231
commands:
232232
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
233233
- apt-get install -y git-lfs
@@ -242,7 +242,7 @@ steps:
242242

243243
- name: test-mssql
244244
pull: always
245-
image: golang:1.12
245+
image: golang:1.13
246246
commands:
247247
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
248248
- apt-get install -y git-lfs
@@ -257,7 +257,7 @@ steps:
257257

258258
- name: generate-coverage
259259
pull: always
260-
image: golang:1.12
260+
image: golang:1.13
261261
commands:
262262
- make coverage
263263
environment:

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#Build stage
44
FROM golang:1.13-alpine3.10 AS build-env
55

6-
#Build deps
7-
RUN apk --no-cache add build-base git
8-
96
ARG GOPROXY
107
ENV GOPROXY ${GOPROXY:-direct}
118

9+
#Build deps
10+
RUN apk --no-cache add build-base git
11+
1212
ARG GITEA_VERSION
1313
#ARG TAGS="sqlite sqlite_unlock_notify"
1414
ARG TAGS

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,6 @@ pr:
472472
golangci-lint:
473473
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
474474
export BINARY="golangci-lint"; \
475-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1; \
475+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.18.0; \
476476
fi
477477
golangci-lint run --deadline=3m

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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)
1313
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backers/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
14+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
1415

1516
## Purpose
1617

README_ZH.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +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
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backers/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
13+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
1314

1415
## 目标
1516

custom/conf/app.ini.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,11 @@ REPO_INDEXER_ENABLED = false
302302
REPO_INDEXER_PATH = indexers/repos.bleve
303303
UPDATE_BUFFER_LEN = 20
304304
MAX_FILE_SIZE = 1048576
305+
; A comma separated list of glob patterns (see https://github.com/gobwas/glob) to include
306+
; in the index; default is empty
307+
REPO_INDEXER_INCLUDE =
308+
; A comma separated list of glob patterns to exclude from the index; ; default is empty
309+
REPO_INDEXER_EXCLUDE =
305310

306311
[admin]
307312
; Disallow regular (non-admin) users from creating organizations.

docs/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ params:
1818
description: Git with a cup of tea
1919
author: The Gitea Authors
2020
website: https://docs.gitea.io
21-
version: 1.9.2
21+
version: 1.9.3
2222

2323
menu:
2424
page:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
181181

182182
- `REPO_INDEXER_ENABLED`: **false**: Enables code search (uses a lot of disk space, about 6 times more than the repository size).
183183
- `REPO_INDEXER_PATH`: **indexers/repos.bleve**: Index file used for code search.
184+
- `REPO_INDEXER_INCLUDE`: **empty**: A comma separated list of glob patterns (see https://github.com/gobwas/glob) to **include** in the index. Use `**.txt` to match any files with .txt extension. An empty list means include all files.
185+
- `REPO_INDEXER_EXCLUDE`: **empty**: A comma separated list of glob patterns (see https://github.com/gobwas/glob) to **exclude** from the index. Files that match this list will not be indexed, even if they match in `REPO_INDEXER_INCLUDE`.
184186
- `UPDATE_BUFFER_LEN`: **20**: Buffer length of index request.
185187
- `MAX_FILE_SIZE`: **1048576**: Maximum size in bytes of files to be indexed.
186188

@@ -291,6 +293,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
291293
- `HOST`: **\<empty\>**: Connection string for `redis` and `memcache`.
292294
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
293295
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
296+
- `ITEM_TTL`: **16h**: Time to keep items in cache if not used, Setting it to 0 disables caching.
294297

295298
## Session (`session`)
296299

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,12 @@ menu:
144144

145145
## Cache (`cache`)
146146

147-
- `ADAPTER`: 缓存引擎,可以为 `memory`, `redis``memcache`
148-
- `INTERVAL`: 只对内存缓存有效,GC间隔,单位秒。
149-
- `HOST`: 针对redis和memcache有效,主机地址和端口。
147+
- `ADAPTER`: **memory**: 缓存引擎,可以为 `memory`, `redis``memcache`
148+
- `INTERVAL`: **60**: 只对内存缓存有效,GC间隔,单位秒。
149+
- `HOST`: **\<empty\>**: 针对redis和memcache有效,主机地址和端口。
150150
- Redis: `network=tcp,addr=127.0.0.1:6379,password=macaron,db=0,pool_size=100,idle_timeout=180`
151151
- Memache: `127.0.0.1:9090;127.0.0.1:9091`
152+
- `ITEM_TTL`: **16h**: 缓存项目失效时间,设置为 0 则禁用缓存。
152153

153154
## Session (`session`)
154155

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ the url `http://gitea.domain.tld/image.png`.
6060

6161
## Changing the default avatar
6262

63-
Place the png image at the following path: `custom/public/img/avatar\_default.png`
63+
Place the png image at the following path: `custom/public/img/avatar_default.png`
6464

6565
## Customizing Gitea pages
6666

0 commit comments

Comments
 (0)