Skip to content

Commit f7ebaf9

Browse files
authored
Merge branch 'main' into check-attr
2 parents 1836ae2 + 358555f commit f7ebaf9

File tree

144 files changed

+6524
-4947
lines changed

Some content is hidden

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

144 files changed

+6524
-4947
lines changed

.drone.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,6 @@ steps:
218218
GITHUB_READ_TOKEN:
219219
from_secret: github_read_token
220220

221-
- name: unit-test-race
222-
image: golang:1.17
223-
commands:
224-
- make test-backend
225-
environment:
226-
GOPROXY: off
227-
TAGS: sqlite sqlite_unlock_notify
228-
RACE_ENABLED: true
229-
GITHUB_READ_TOKEN:
230-
from_secret: github_read_token
231-
232221
- name: unit-test-gogit
233222
pull: always
234223
image: golang:1.17

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/templates/**/*.tmpl linguist-language=Handlebars
55
/.eslintrc linguist-language=YAML
66
/.stylelintrc linguist-language=YAML
7+
/web_src/fomantic/build/** linguist-generated

CHANGELOG.md

Lines changed: 44 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.15.2](https://github.com/go-gitea/gitea/releases/tag/v1.15.2) - 2021-09-03
8+
9+
* BUGFIXES
10+
* Add unique constraint back into issue_index (#16938)
11+
* Close storage objects before cleaning (#16934) (#16942)
12+
13+
## [1.15.1](https://github.com/go-gitea/gitea/releases/tag/v1.15.1) - 2021-09-02
14+
15+
* BUGFIXES
16+
* Allow BASIC authentication access to /:owner/:repo/releases/download/* (#16916) (#16923)
17+
* Prevent leave changes dialogs due to autofill fields (#16912) (#16920)
18+
* Ignore review comment when ref commit is missed (#16905) (#16919)
19+
* Fix wrong attachment removal (#16915) (#16917)
20+
* Gitlab Migrator: dont ignore reactions of last request (#16903) (#16913)
21+
* Correctly return the number of Repositories for Organizations (#16807) (#16911)
22+
* Test if LFS object is accessible (#16865) (#16904)
23+
* Fix git.Blob.DataAsync(): close pipe since we return a NopCloser (#16899) (#16900)
24+
* Fix dump and restore respository (#16698) (#16898)
25+
* Repare and Improve GetDiffRangeWithWhitespaceBehavior (#16894) (#16895)
26+
* Fix wiki raw commit diff/patch view (#16891) (#16892)
27+
* Ensure wiki repos are all closed (#16886) (#16888)
28+
* List limited and private orgs if authenticated on API (#16866) (#16879)
29+
* Simplify split diff view generation and remove JS dependency (#16775) (#16863)
30+
* Ensure that the default visibility is set on the user create page (#16845) (#16862)
31+
* In Render tolerate not being passed a context (#16842) (#16858)
32+
* Upgrade xorm to v1.2.2 (#16663) & Add test to ensure that dumping of login sources remains correct (#16847) (#16848)
33+
* Report the correct number of pushes on the feeds (#16811) (#16822)
34+
* Add primary_key to issue_index (#16813) (#16820)
35+
* Prevent NPE on empty commit (#16812) (#16819)
36+
* Fix branch pagination error (#16805) (#16816)
37+
* Add missing return to handleSettingRemoteAddrError (#16794) (#16795)
38+
* Remove spurious / from issues.opened_by (#16793)
39+
* Ensure that template compilation panics are sent to the logs (#16788) (#16792)
40+
* Update caddyserver/certmagic (#16789) (#16790)
41+
742
## [1.15.0](https://github.com/go-gitea/gitea/releases/tag/v1.15.0) - 2021-08-21
843

944
* BREAKING
@@ -258,6 +293,15 @@ been added to each release, please refer to the [blog](https://blog.gitea.io).
258293
* Remove utf8 option from installation page (#16126)
259294
* Use Wants= over Requires= in systemd file (#15897)
260295

296+
## [1.14.7](https://github.com/go-gitea/gitea/releases/tag/v1.14.7) - 2021-09-02
297+
298+
* BUGFIXES
299+
* Add missing gitRepo close at GetDiffRangeWithWhitespaceBehavior (Partial #16894) (#16896)
300+
* Fix wiki raw commit diff/patch view (#16891) (#16893)
301+
* Ensure wiki repos are all closed (#16886) (#16889)
302+
* Upgrade xorm to v1.2.2 (#16663) & Add test to ensure that dumping of login sources remains correct (#16847) (#16849)
303+
* Recreate Tables should Recreate indexes on MySQL (#16718) (#16740)
304+
261305
## [1.14.6](https://github.com/go-gitea/gitea/releases/tag/v1.14.6) - 2021-08-04
262306

263307
* SECURITY

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ test\#%:
385385

386386
.PHONY: coverage
387387
coverage:
388-
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage.out coverage.out > coverage.all
388+
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' coverage.out > coverage-bodged.out
389+
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' integration.coverage.out > integration.coverage-bodged.out
390+
GO111MODULE=on $(GO) run -mod=vendor build/gocovmerge.go integration.coverage-bodged.out coverage-bodged.out > coverage.all || (echo "gocovmerge failed"; echo "integration.coverage.out"; cat integration.coverage.out; echo "coverage.out"; cat coverage.out; exit 1)
389391

390392
.PHONY: unit-test-coverage
391393
unit-test-coverage:
@@ -701,6 +703,7 @@ fomantic:
701703
cp -rf $(FOMANTIC_WORK_DIR)/_site $(FOMANTIC_WORK_DIR)/node_modules/fomantic-ui/src/
702704
cp -f web_src/js/vendor/dropdown.js $(FOMANTIC_WORK_DIR)/node_modules/fomantic-ui/src/definitions/modules
703705
cd $(FOMANTIC_WORK_DIR) && npx gulp -f node_modules/fomantic-ui/gulpfile.js build
706+
rm -f $(FOMANTIC_WORK_DIR)/build/*.min.*
704707

705708
.PHONY: webpack
706709
webpack: $(WEBPACK_DEST)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="https://codecov.io/gh/go-gitea/gitea" title="Codecov">
1616
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
1717
</a>
18-
<a href="https://godoc.org/code.gitea.io/gitea" title="Go Report Card">
18+
<a href="https://goreportcard.com/report/code.gitea.io/gitea" title="Go Report Card">
1919
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
2020
</a>
2121
<a href="https://godoc.org/code.gitea.io/gitea" title="GoDoc">

README_ZH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="https://codecov.io/gh/go-gitea/gitea" title="Codecov">
1616
<img src="https://codecov.io/gh/go-gitea/gitea/branch/main/graph/badge.svg">
1717
</a>
18-
<a href="https://godoc.org/code.gitea.io/gitea" title="Go Report Card">
18+
<a href="https://goreportcard.com/report/code.gitea.io/gitea" title="Go Report Card">
1919
<img src="https://goreportcard.com/badge/code.gitea.io/gitea">
2020
</a>
2121
<a href="https://godoc.org/code.gitea.io/gitea" title="GoDoc">

cmd/doctor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ func runRecreateTable(ctx *cli.Context) error {
124124
}
125125

126126
func runDoctor(ctx *cli.Context) error {
127-
128127
// Silence the default loggers
129128
log.DelNamedLogger("console")
130129
log.DelNamedLogger(log.DEFAULT)

custom/conf/app.example.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,6 @@ PATH =
800800
;; Prefix archive files by placing them in a directory named after the repository
801801
;PREFIX_ARCHIVE_FILES = true
802802
;;
803-
;; Disable the creation of new mirrors. Pre-existing mirrors remain valid.
804-
;DISABLE_MIRRORS = false
805-
;;
806803
;; Disable migrating feature.
807804
;DISABLE_MIGRATIONS = false
808805
;;
@@ -907,6 +904,7 @@ PATH =
907904
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
908905
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
909906
;ALLOWED_TYPES =
907+
;DEFAULT_PAGING_NUM = 10
910908

911909
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
912910
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -1944,6 +1942,12 @@ PATH =
19441942
;[mirror]
19451943
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
19461944
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1945+
;; Enables the mirror functionality. Set to **false** to disable all mirrors.
1946+
;ENABLED = true
1947+
;; Disable the creation of **new** pull mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`.
1948+
;DISABLE_NEW_PULL = false
1949+
;; Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`.
1950+
;DISABLE_NEW_PUSH = false
19471951
;; Default interval as a duration between each check
19481952
;DEFAULT_INTERVAL = 8h
19491953
;; Min interval as a duration must be > 1m

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.15.0
21+
version: 1.15.2
2222
minGoVersion: 1.16
2323
goVersion: 1.17
2424
minNodeVersion: 12.17

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
7373
- `DISABLED_REPO_UNITS`: **_empty_**: Comma separated list of globally disabled repo units. Allowed values: \[repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects\]
7474
- `DEFAULT_REPO_UNITS`: **repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects**: Comma separated list of default repo units. Allowed values: \[repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects\]. Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility. External wiki and issue tracker can't be enabled by default as it requires additional settings. Disabled repo units will not be added to new repositories regardless if it is in the default list.
7575
- `PREFIX_ARCHIVE_FILES`: **true**: Prefix archive files by placing them in a directory named after the repository.
76-
- `DISABLE_MIRRORS`: **false**: Disable the creation of **new** mirrors. Pre-existing mirrors remain valid.
7776
- `DISABLE_MIGRATIONS`: **false**: Disable migrating feature.
7877
- `DISABLE_STARS`: **false**: Disable stars feature.
7978
- `DEFAULT_BRANCH`: **master**: Default branch name of all repositories.
@@ -115,6 +114,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
115114
### Repository - Release (`repository.release`)
116115

117116
- `ALLOWED_TYPES`: **\<empty\>**: Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
117+
- `DEFAULT_PAGING_NUM`: **10**: The default paging number of releases user interface
118118

119119
### Repository - Signing (`repository.signing`)
120120

@@ -954,6 +954,9 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
954954

955955
## Mirror (`mirror`)
956956

957+
- `ENABLED`: **true**: Enables the mirror functionality. Set to **false** to disable all mirrors.
958+
- `DISABLE_NEW_PULL`: **false**: Disable the creation of **new** pull mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`.
959+
- `DISABLE_NEW_PUSH`: **false**: Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`.
957960
- `DEFAULT_INTERVAL`: **8h**: Default interval between each check
958961
- `MIN_INTERVAL`: **10m**: Minimum interval for checking. (Must be >1m).
959962

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ menu:
3636
- `MAX_CREATION_LIMIT`: 全局最大每个用户创建的git工程数目, `-1` 表示没限制。
3737
- `PULL_REQUEST_QUEUE_LENGTH`: 小心:合并请求测试队列的长度,尽量放大。
3838

39+
### Repository - Release (`repository.release`)
40+
41+
- `ALLOWED_TYPES`: **\<empty\>**: 允许扩展名的列表,用逗号分隔 (`.zip`), mime 类型 (`text/plain`) 或者匹配符号 (`image/*`, `audio/*`, `video/*`). 空值或者 `*/*` 允许所有类型。
42+
- `DEFAULT_PAGING_NUM`: **10**: 默认的发布版本页面分页。
43+
3944
## UI (`ui`)
4045

4146
- `EXPLORE_PAGING_NUM`: 探索页面每页显示的仓库数量。

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,21 @@ A full list of supported emoji's is at [emoji list](https://gitea.com/gitea/gite
321321

322322
## Customizing the look of Gitea
323323

324-
As of version 1.6.0 Gitea has built-in themes. The two built-in themes are, the default theme `gitea`, and a dark theme `arc-green`. To change the look of your Gitea install change the value of `DEFAULT_THEME` in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini` to another one of the available options.
325-
As of version 1.8.0 Gitea also has per-user themes. The list of themes a user can choose from can be configured with the `THEMES` value in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini` (defaults to `gitea` and `arc-green`, light and dark respectively)
324+
The default built-in themes are `gitea` (light) and `arc-green` (dark).
325+
The default theme can be changed via `DEFAULT_THEME` in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini`.
326+
327+
Gitea also has support for user themes, which means every user can select which theme should be used.
328+
The list of themes a user can choose from can be configured with the `THEMES` value in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini`.
329+
330+
To make a custom theme available to all users:
331+
332+
1. Add a CSS file to `$GITEA_PUBLIC/public/css/theme-<theme-name>.css`.
333+
The value of `$GITEA_PUBLIC` of your instance can be queried by calling `gitea help` and looking up the value of "CustomPath".
334+
2. Add `<theme-name>` to the comma-separated list of setting `THEMES` in `app.ini`
335+
336+
Community themes are listed in [gitea/awesome-gitea#themes](https://gitea.com/gitea/awesome-gitea#themes).
337+
338+
The `arc-green` theme source can be found [here](https://github.com/go-gitea/gitea/blob/main/web_src/less/themes/theme-arc-green.less).
326339

327340
## Customizing fonts
328341

docs/content/doc/advanced/mail-templates-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Please check [Gitea's logs](https://docs.gitea.io/en-us/logging-configuration/)
208208
{{end}}
209209
<p>
210210
<p>
211-
<a href="{{AppURL}}/{{.Doer.LowerName}}">@{{.Doer.Name}}</a>
211+
<a href="{{AppUrl}}/{{.Doer.LowerName}}">@{{.Doer.Name}}</a>
212212
{{if not (eq .Doer.FullName "")}}
213213
({{.Doer.FullName}})
214214
{{end}}

docs/content/doc/developers/hacking-on-gitea.en-us.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,19 @@ Visual Studio Code. Look at
309309
[`contrib/ide/README.md`](https://github.com/go-gitea/gitea/blob/main/contrib/ide/README.md)
310310
for more information.
311311

312+
## GoLand
313+
314+
Clicking the `Run Application` arrow on the function `func main()` in `/main.go`
315+
can quickly start a debuggable gitea instance.
316+
317+
The `Output Directory` in `Run/Debug Configuration` MUST be set to the
318+
gitea project directory (which contains `main.go` and `go.mod`),
319+
otherwise, the started instance's working directory is a GoLand's temporary directory
320+
and prevents gitea from loading dynamic resources (eg: templates) in a development environment.
321+
322+
To run unit tests with SQLite in GoLand, set `-tags sqlite,sqlite_unlock_notify`
323+
in `Go tool arguments` of `Run/Debug Configuration`.
324+
312325
## Submitting PRs
313326

314327
Once you're happy with your changes, push them up and open a pull request. It

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Gitea ist ein [Gogs](http://gogs.io)-Fork.
2222

2323
## System Voraussetzungen
2424

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.
25+
- Ein Raspberry Pi 3 ist leistungsstark genug, um Gitea für kleine Belastungen laufen zu lassen.
26+
- 2 CPU Kerne und 1GB RAM sind für kleine Teams/Projekte ausreichend.
27+
- Gitea sollte unter einem seperaten nicht-root Account auf UNIX-Systemen ausgeführt werden.
28+
- Achtung: Gitea verwaltet die `~/.ssh/authorized_keys` Datei. Gitea unter einem normalen Benutzer auszuführen könnte dazu führen, dass dieser sich nicht mehr anmelden kann.
29+
- [Git](https://git-scm.com/) Version 1.7.2 oder später wird benötigt. Version 1.9.0 oder später wird empfohlen. Außerdem zu beachten:
30+
- Wenn git >= 2.1.2. und [Git large file storage](https://git-lfs.github.com/) aktiviert ist, dann wird es auch in Gitea verwendbar sein.
31+
- Wenn git >= 2.18, dann wird das Rendern von Commit-Graphen automatisch aktiviert.
3232

3333
## Browser Unterstützung
3434

integrations/api_repo_lfs_test.go

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ func TestAPILFSBatch(t *testing.T) {
253253
assert.NoError(t, err)
254254
assert.True(t, exist)
255255

256+
repo2 := createLFSTestRepository(t, "batch2")
257+
content := []byte("dummy0")
258+
storeObjectInRepo(t, repo2.ID, &content)
259+
256260
meta, err := repo.GetLFSMetaObjectByOid(p.Oid)
257261
assert.Nil(t, meta)
258262
assert.Equal(t, models.ErrLFSObjectNotExist, err)
@@ -358,13 +362,19 @@ func TestAPILFSUpload(t *testing.T) {
358362
assert.Nil(t, meta)
359363
assert.Equal(t, models.ErrLFSObjectNotExist, err)
360364

361-
req := newRequest(t, p, "")
365+
t.Run("InvalidAccess", func(t *testing.T) {
366+
req := newRequest(t, p, "invalid")
367+
session.MakeRequest(t, req, http.StatusUnprocessableEntity)
368+
})
362369

363-
session.MakeRequest(t, req, http.StatusOK)
370+
t.Run("ValidAccess", func(t *testing.T) {
371+
req := newRequest(t, p, "dummy5")
364372

365-
meta, err = repo.GetLFSMetaObjectByOid(p.Oid)
366-
assert.NoError(t, err)
367-
assert.NotNil(t, meta)
373+
session.MakeRequest(t, req, http.StatusOK)
374+
meta, err = repo.GetLFSMetaObjectByOid(p.Oid)
375+
assert.NoError(t, err)
376+
assert.NotNil(t, meta)
377+
})
368378
})
369379

370380
t.Run("MetaAlreadyExists", func(t *testing.T) {

integrations/api_settings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestAPIExposedSettings(t *testing.T) {
4343

4444
DecodeJSON(t, resp, &repo)
4545
assert.EqualValues(t, &api.GeneralRepoSettings{
46-
MirrorsDisabled: setting.Repository.DisableMirrors,
46+
MirrorsDisabled: !setting.Mirror.Enabled,
4747
HTTPGitDisabled: setting.Repository.DisableHTTPGit,
4848
MigrationsDisabled: setting.Repository.DisableMigrations,
4949
TimeTrackingDisabled: false,

integrations/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestMain(m *testing.M) {
120120
}
121121
exitCode := m.Run()
122122

123-
writerCloser.t = nil
123+
writerCloser.Reset()
124124

125125
if err = util.RemoveAll(setting.Indexer.IssuePath); err != nil {
126126
fmt.Printf("util.RemoveAll: %v\n", err)

integrations/mssql.ini.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mssql/indexers/issues.q
1515
REPO_INDEXER_ENABLED = true
1616
REPO_INDEXER_PATH = integrations/gitea-integration-mssql/indexers/repos.bleve
1717

18+
[queue]
19+
TYPE = immediate
20+
1821
[queue.code_indexer]
1922
TYPE = immediate
2023

integrations/mysql.ini.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mysql/indexers/issues.q
1616
REPO_INDEXER_ENABLED = true
1717
REPO_INDEXER_PATH = integrations/gitea-integration-mysql/indexers/repos.bleve
1818

19+
[queue]
20+
TYPE = immediate
21+
1922
[queue.code_indexer]
2023
TYPE = immediate
2124

integrations/mysql8.ini.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mysql8/indexers/issues.
1515
REPO_INDEXER_ENABLED = true
1616
REPO_INDEXER_PATH = integrations/gitea-integration-mysql8/indexers/repos.bleve
1717

18+
[queue]
19+
TYPE = immediate
20+
1821
[queue.code_indexer]
1922
TYPE = immediate
2023

integrations/pgsql.ini.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-pgsql/indexers/issues.q
1616
REPO_INDEXER_ENABLED = true
1717
REPO_INDEXER_PATH = integrations/gitea-integration-pgsql/indexers/repos.bleve
1818

19+
[queue]
20+
TYPE = immediate
21+
1922
[queue.code_indexer]
2023
TYPE = immediate
2124

0 commit comments

Comments
 (0)