Skip to content

Commit 32e815b

Browse files
Merge branch 'main' into refactor-ini
2 parents 7da7725 + 2a99804 commit 32e815b

23 files changed

+13
-29
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ endif
4343
ifeq ($(OS), Windows_NT)
4444
GOFLAGS := -v -buildmode=exe
4545
EXECUTABLE ?= gitea.exe
46+
else ifeq ($(OS), Windows)
47+
GOFLAGS := -v -buildmode=exe
48+
EXECUTABLE ?= gitea.exe
4649
else
4750
GOFLAGS := -v
4851
EXECUTABLE ?= gitea

custom/conf/app.example.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -1145,8 +1145,8 @@ PATH =
11451145
;;
11461146
;; When ISSUE_INDEXER_QUEUE_TYPE is levelqueue, this will be the path where the queue will be saved.
11471147
;; This can be overridden by `ISSUE_INDEXER_QUEUE_CONN_STR`.
1148-
;; default is indexers/issues.queue
1149-
;ISSUE_INDEXER_QUEUE_DIR = indexers/issues.queue
1148+
;; default is queues/common
1149+
;ISSUE_INDEXER_QUEUE_DIR = queues/common
11501150
;;
11511151
;; When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string.
11521152
;; When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this is a directory or additional options of
@@ -1201,7 +1201,7 @@ PATH =
12011201
;; default to persistable-channel
12021202
;TYPE = persistable-channel
12031203
;;
1204-
;; data-dir for storing persistable queues and level queues, individual queues will be named by their type
1204+
;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
12051205
;DATADIR = queues/
12061206
;;
12071207
;; Default queue length before a channel queue will block
@@ -1231,7 +1231,7 @@ PATH =
12311231
;TIMEOUT = 15m30s
12321232
;;
12331233
;; Create a pool with this many workers
1234-
;WORKERS = 1
1234+
;WORKERS = 0
12351235
;;
12361236
;; Dynamically scale the worker pool to at this many workers
12371237
;MAX_WORKERS = 10
@@ -1243,7 +1243,7 @@ PATH =
12431243
;BOOST_TIMEOUT = 5m
12441244
;;
12451245
;; During a boost add BOOST_WORKERS
1246-
;BOOST_WORKERS = 5
1246+
;BOOST_WORKERS = 1
12471247

12481248
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12491249
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ relation to port exhaustion.
350350
- `ISSUE_INDEXER_PATH`: **indexers/issues.bleve**: Index file used for issue search; available when ISSUE_INDEXER_TYPE is bleve and elasticsearch.
351351
- The next 4 configuration values are deprecated and should be set in `queue.issue_indexer` however are kept for backwards compatibility:
352352
- `ISSUE_INDEXER_QUEUE_TYPE`: **levelqueue**: Issue indexer queue, currently supports:`channel`, `levelqueue`, `redis`.
353-
- `ISSUE_INDEXER_QUEUE_DIR`: **indexers/issues.queue**: When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this will be the path where the queue will be saved.
353+
- `ISSUE_INDEXER_QUEUE_DIR`: **queues/common**: When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this will be the path where the queue will be saved. (Previously this was `indexers/issues.queue`.)
354354
- `ISSUE_INDEXER_QUEUE_CONN_STR`: **addrs=127.0.0.1:6379 db=0**: When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string. When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this is a directory or additional options of the form `leveldb://path/to/db?option=value&....`, and overrides `ISSUE_INDEXER_QUEUE_DIR`.
355355
- `ISSUE_INDEXER_QUEUE_BATCH_NUMBER`: **20**: Batch queue number.
356356

@@ -370,7 +370,7 @@ relation to port exhaustion.
370370
## Queue (`queue` and `queue.*`)
371371

372372
- `TYPE`: **persistable-channel**: General queue type, currently support: `persistable-channel` (uses a LevelDB internally), `channel`, `level`, `redis`, `dummy`
373-
- `DATADIR`: **queues/**: Base DataDir for storing persistent and level queues. `DATADIR` for individual queues can be set in `queue.name` sections but will default to `DATADIR/`**`name`**.
373+
- `DATADIR`: **queues/**: Base DataDir for storing persistent and level queues. `DATADIR` for individual queues can be set in `queue.name` sections but will default to `DATADIR/`**`common`**. (Previously each queue would default to `DATADIR/`**`name`**.)
374374
- `LENGTH`: **20**: Maximal queue size before channel queues block
375375
- `BATCH_LENGTH`: **20**: Batch data before passing to the handler
376376
- `CONN_STR`: **redis://127.0.0.1:6379/0**: Connection string for the redis queue type. Options can be set using query params. Similarly LevelDB options can also be set using: **leveldb://relative/path?option=value** or **leveldb:///absolute/path?option=value**, and will override `DATADIR`
@@ -381,11 +381,11 @@ relation to port exhaustion.
381381
- `MAX_ATTEMPTS`: **10**: Maximum number of attempts to create the wrapped queue
382382
- `TIMEOUT`: **GRACEFUL_HAMMER_TIME + 30s**: Timeout the creation of the wrapped queue if it takes longer than this to create.
383383
- Queues by default come with a dynamically scaling worker pool. The following settings configure this:
384-
- `WORKERS`: **1**: Number of initial workers for the queue.
384+
- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue.
385385
- `MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
386386
- `BLOCK_TIMEOUT`: **1s**: If the queue blocks for this time, boost the number of workers - the `BLOCK_TIMEOUT` will then be doubled before boosting again whilst the boost is ongoing.
387387
- `BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.
388-
- `BOOST_WORKERS`: **5**: This many workers will be added to the worker pool if there is a boost.
388+
- `BOOST_WORKERS`: **1** (v1.14 and before: **5**): This many workers will be added to the worker pool if there is a boost.
389389

390390
## Admin (`admin`)
391391

options/locale/locale_bg-BG.ini

-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ pulls.merged_as=Тази заявка за сливане е била обеди
772772
pulls.is_closed=Тази заявка за сливане е затворена.
773773
pulls.has_merged=Тази заявка за сливане е обединена.
774774
pulls.title_wip_desc=`<a href="#">Започнете заглавието с <strong>%s</strong></a>, за да предотвратите случайно обединяване на заявката за сливане.`
775-
pulls.cannot_merge_work_in_progress=Тази завка за сливане е отбелязане като работа в прогрес. Премахнете <strong>%s</strong> представката от заглавието, когато е готова
776775
pulls.can_auto_merge_desc=Може да се извърши обединяване на тази заявка за сливане.
777776
pulls.num_conflicting_files_1=%d конфликтен файл
778777
pulls.num_conflicting_files_n=%d конфликтни файлове

options/locale/locale_cs-CZ.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,6 @@ pulls.manually_merged=Sloučeno ručně
12751275
pulls.is_closed=Požadavek na natažení byl uzavřen.
12761276
pulls.has_merged=Požadavek na natažení byl sloučen.
12771277
pulls.title_wip_desc=`<a href="#">Začněte název s <strong>%s</strong></a> a zamezíte tak nechtěnému sloučení požadavku na natažení.`
1278-
pulls.cannot_merge_work_in_progress=Požadavek na natažení je označen jako ve vývoji. Odstraňte <strong>%s</strong> prefix z titulku, až bude hotový
12791278
pulls.data_broken=Tento požadavek na natažení je rozbitý kvůli chybějícím informacím o rozštěpení.
12801279
pulls.files_conflicted=Tento požadavek na natažení obsahuje změny, které kolidují s cílovou větví.
12811280
pulls.is_checking=Právě probíhá kontrola konfliktů při sloučení. Zkuste to za chvíli.

options/locale/locale_de-DE.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ pulls.manually_merged_as=Dieser Pull Request wurde manuell als <a rel="nofollow"
13151315
pulls.is_closed=Der Pull-Request wurde geschlossen.
13161316
pulls.has_merged=Der Pull-Request wurde gemergt.
13171317
pulls.title_wip_desc=`<a href="#">Beginne den Titel mit <strong>%s</strong></a> um zu verhindern, dass der Pull Request versehentlich gemergt wird.`
1318-
pulls.cannot_merge_work_in_progress=Dieser Pull Request wurde als Work In Progress markiert. Entferne den <strong>%s</strong>-Präfix vom Titel, wenn dieser fertig ist.
13191318
pulls.data_broken=Dieser Pull-Requests ist kaputt, da Fork-Informationen gelöscht wurden.
13201319
pulls.files_conflicted=Dieser Pull-Request hat Änderungen, die im Widerspruch zum Ziel-Branch stehen.
13211320
pulls.is_checking=Die Konfliktprüfung läuft noch. Bitte aktualisiere die Seite in wenigen Augenblicken.

options/locale/locale_es-ES.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ pulls.manually_merged_as=El Pull Request se ha fusionado manualmente como <a rel
13151315
pulls.is_closed=El pull request ha sido cerrado.
13161316
pulls.has_merged=El pull request ha sido fusionado.
13171317
pulls.title_wip_desc=`<a href="#">Comience el título con <strong>%s</strong></a> para prevenir que el pull request se fusione accidentalmente.`
1318-
pulls.cannot_merge_work_in_progress=Este pull request está marcado como un trabajo en progreso. Elimine el prefijo <strong>%s</strong> del título cuando esté listo
13191318
pulls.data_broken=Este pull request está rota debido a que falta información del fork.
13201319
pulls.files_conflicted=Este pull request tiene cambios en conflicto con la rama de destino.
13211320
pulls.is_checking=La comprobación de conflicto de fusión está en progreso. Inténtalo de nuevo en unos momentos.

options/locale/locale_fa-IR.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,6 @@ pulls.merged_as=تقاضای واکشی <a rel="nofollow" class="ui sha" href="%
11311131
pulls.is_closed=این تقاضای واکشی بسته شد.
11321132
pulls.has_merged=این تقاضای واکشی ادغام شد.
11331133
pulls.title_wip_desc=`<a href="#"> شروع شذع با عنوان <strong>%s</strong></a> برای جلو گیری کردن از تقاضای واکشی که موقع ادغام دچار تصادم میشود.`
1134-
pulls.cannot_merge_work_in_progress=این تقاضای واکشی در حال پردازش است. پیشوند <strong>%s</strong> پس از آنکه آماده شد از عنوانش حذف میشود
11351134
pulls.data_broken=این تقاضای واکشی به دلیل از دست رفتن اطلاعات انشعاب با شکست مواجه شد.
11361135
pulls.files_conflicted=این تقاضای واکشی دارای تغییراتی است که با شاخه هدف تداخل دارد.
11371136
pulls.is_checking=در حال پردازش تداخل در ادغام می‌باشد. لطفاً لحظاتی بعد امتحان کنید.

options/locale/locale_fr-FR.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,6 @@ pulls.manually_merged_as=La demande d'ajout a été fusionnée manuellement en t
13101310
pulls.is_closed=La demande de fusion a été fermée.
13111311
pulls.has_merged=La pull request a été fusionnée.
13121312
pulls.title_wip_desc=`<a href="#">Préfixer le titre par <strong>%s</strong></a> pour empêcher cette demande d'ajout d'être fusionnée par erreur.`
1313-
pulls.cannot_merge_work_in_progress=Cette demande d'ajout est marquée comme en cours de chantier. Retirer le préfixe <strong>%s</strong> du titre quand elle sera prête
13141313
pulls.data_broken=Cette demande de fusion est impossible par manque d'informations de bifurcation.
13151314
pulls.files_conflicted=Cette demande d'ajout contient des modifications en conflit avec la branche ciblée.
13161315
pulls.is_checking=Vérification des conflits de fusion en cours. Réessayez dans quelques instants.

options/locale/locale_it-IT.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,6 @@ pulls.manually_merged=Unito manualmente
12391239
pulls.is_closed=La pull request è stata chiusa.
12401240
pulls.has_merged=La pull request è stata unita.
12411241
pulls.title_wip_desc=`<a href="#">Inizia il titolo con <strong>%s</strong></a> per evitare che la pull request venga unita accidentalmente.`
1242-
pulls.cannot_merge_work_in_progress=Questa pull request è contrassegnata come un lavoro in corso. Rimuovi il prefisso <strong>%s</strong> dal titolo quando è pronta
12431242
pulls.data_broken=Questa pull request è rovinata a causa di informazioni mancanti del fork.
12441243
pulls.files_conflicted=Questa pull request ha modifiche in conflitto con il branch di destinazione.
12451244
pulls.is_checking=Verifica dei conflitti di merge in corso. Riprova tra qualche istante.

options/locale/locale_ja-JP.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ pulls.manually_merged_as=プルリクエストは <a rel="nofollow" class="ui sh
13151315
pulls.is_closed=プルリクエストはクローズされています。
13161316
pulls.has_merged=プルリクエストはマージされています。
13171317
pulls.title_wip_desc=`誤ってマージされないようにするには、<a href="#">タイトルの頭に <strong>%s</strong> を付けます</a>。`
1318-
pulls.cannot_merge_work_in_progress=このプルリクエストはWork in Progressとマークされています。 マージできる状態になったら、タイトルから <strong>%s</strong> を消してください。
13191318
pulls.data_broken=このプルリクエストは、フォークの情報が見つからないため壊れています。
13201319
pulls.files_conflicted=このプルリクエストは、ターゲットブランチと競合する変更を含んでいます。
13211320
pulls.is_checking=マージのコンフリクトを確認中です。 少し待ってからもう一度実行してください。

options/locale/locale_lv-LV.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,6 @@ pulls.manually_merged_as=Izmaiņu pieprasījums tika sapludināts manuāli ar re
12911291
pulls.is_closed=Izmaiņu pieprasījums tika aizvērts.
12921292
pulls.has_merged=Šis izmaiņu pieprasījums tika veiksmīgi sapludināts.
12931293
pulls.title_wip_desc=`<a href="#">Sāciet virsrakstu ar <strong>%s</strong></a>, lai ierobežotu, ka izmaiņu pieprasījums netīšām tiktu sapludināts.`
1294-
pulls.cannot_merge_work_in_progress=Šis izmaiņu pieprasījums ir atzīmēts, ka pie tā vēl notiek izstrāde. Noņemiet <strong>%s</strong> no virsraksta sākuma, kad tas ir pabeigts.
12951294
pulls.data_broken=Izmaiņu pieprasījums ir bojāts, jo dzēsta informācija no atdalītā repozitorija.
12961295
pulls.files_conflicted=Šīs izmaiņu pieprasījuma izmaiņas konfliktē ar mērķa atzaru.
12971296
pulls.is_checking=Notiek konfliktu pārbaude, mirkli uzgaidiet un atjaunojiet lapu.

options/locale/locale_nl-NL.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,6 @@ pulls.merged_as=De pull request is samengevoegd als <a rel="nofollow" class="ui
12161216
pulls.is_closed=Deze pull-aanvraag is gesloten.
12171217
pulls.has_merged=Deze pull-aanvraag is al samengevoegd.
12181218
pulls.title_wip_desc=`<a href="#">Start de titel met <strong>%s</strong></a> om te voorkomen dat deze pull-aanvraag per ongeluk wordt samengevoegd.`
1219-
pulls.cannot_merge_work_in_progress=Deze pull-aanvraag is als "work in progress" gemarkeerd. Verwijder de <strong>%s</strong>-prefix van de titel zodra hij klaar is
12201219
pulls.data_broken=Deze pull-aanvraag is ongeldig wegens missende fork-informatie.
12211220
pulls.files_conflicted=Dit pull request heeft wijzigingen die strijdig zijn met de doel branch.
12221221
pulls.is_checking=Controle op samenvoegingsconflicten is nog bezig. Probeer later nog een keer.

options/locale/locale_pl-PL.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,6 @@ pulls.merged_as=Pull Request został scalony jako <a rel="nofollow" class="ui sh
11531153
pulls.is_closed=Pull Request został zamknięty.
11541154
pulls.has_merged=Pull Request został scalony.
11551155
pulls.title_wip_desc=`<a href="#">Poprzedź tytuł przy pomocy <strong>%s</strong></a>, aby zapobiec przypadkowemu scaleniu tego Pull Requesta.`
1156-
pulls.cannot_merge_work_in_progress=Ten Pull Request został oznaczony jako praca w toku. Usuń prefiks <strong>%s</strong> z tytułu, kiedy będzie już gotowy.
11571156
pulls.data_broken=Ten Pull Request jest uszkodzony ze względu na brakujące informacje o forku.
11581157
pulls.files_conflicted=Ten Pull Request zawiera zmiany konfliktujące z docelową gałęzią.
11591158
pulls.is_checking=Sprawdzanie konfliktów ze scalaniem w toku. Spróbuj ponownie za chwilę.

options/locale/locale_pt-BR.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,6 @@ pulls.merged_as=O pull request teve merge aplicado como <a rel="nofollow" class=
12371237
pulls.is_closed=O pull request foi fechado.
12381238
pulls.has_merged=O merge deste pull request foi aplicado.
12391239
pulls.title_wip_desc=`<a href="#">Inicie o título com o prefixo <strong>%s</strong></a> para prevenir o merge do pull request até que o mesmo esteja pronto.`
1240-
pulls.cannot_merge_work_in_progress=Este pull request está marcado como um trabalho em andamento. Remova o prefixo <strong>%s</strong> do título quando estiver pronto
12411240
pulls.data_broken=Este pull request está quebrado devido a falta de informação do fork.
12421241
pulls.files_conflicted=Este pull request tem alterações conflitantes com o branch de destino.
12431242
pulls.is_checking=Verificação de conflitos do merge está em andamento. Tente novamente em alguns momentos.

options/locale/locale_pt-PT.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,6 @@ pulls.manually_merged_as=A integração constante neste pedido foi executada man
13051305
pulls.is_closed=O pedido de integração foi fechado.
13061306
pulls.has_merged=A integração constante no pedido foi executada.
13071307
pulls.title_wip_desc=`<a href="#">Inicie o título com <strong>%s</strong></a> para evitar que o pedido de integração seja executado acidentalmente.`
1308-
pulls.cannot_merge_work_in_progress=Este pedido de integração está marcado como um trabalho em andamento. Remova o prefixo <strong>%s</strong> do título quando estiver pronto
13091308
pulls.data_broken=Este pedido de integração está danificado devido à falta de informação da derivação.
13101309
pulls.files_conflicted=Este pedido de integração contém modificações que entram em conflito com o ramo de destino.
13111310
pulls.is_checking=Está em andamento uma verificação de conflitos na integração. Tente novamente daqui a alguns momentos.

options/locale/locale_ru-RU.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,6 @@ pulls.manually_merged_as=Pull request был объединён вручную,
12931293
pulls.is_closed=Слияние этого запроса успешно завершено.
12941294
pulls.has_merged=Слияние этого запроса успешно завершено.
12951295
pulls.title_wip_desc=`<a href="#">Добавьте <strong>%s</strong> в начало заголовка</a> для защиты от случайного досрочного принятия Pull Request'а.`
1296-
pulls.cannot_merge_work_in_progress=Данный Pull Request помечен как находящийся ещё в разработке. Удалите <strong>%s</strong> из названия после завершения работы над ним
12971296
pulls.data_broken=Содержимое этого запроса было нарушено вследствие удаления информации форка.
12981297
pulls.files_conflicted=Этот Pull Request имеет изменения, конфликтующие с целевой веткой.
12991298
pulls.is_checking=Продолжается проверка конфликтов, пожалуйста обновите страницу несколько позже.

options/locale/locale_sv-SE.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,6 @@ pulls.merged_as=Pull-förfrågan har sammanfogats som <a rel="nofollow" class="u
11731173
pulls.is_closed=Pull-förfrågan har stängts.
11741174
pulls.has_merged=Pull-requested har blivit mergad.
11751175
pulls.title_wip_desc=`<a href="#">Börja titeln med <strong>%s</strong></a> för att förhindra att pull-förfrågan sammanfogas av misstag`
1176-
pulls.cannot_merge_work_in_progress=Denna pull-förfrågan är markerad som ett pågående arbete. Ta bort prefixet <strong>%s</strong> från titeln när den är klar
11771176
pulls.data_broken=Pull-requesten är trasig pågrund av oexisterande information on forken.
11781177
pulls.files_conflicted=Den här pull-förfrågan ha ändringar som är i konflikt med mål-branchen.
11791178
pulls.is_checking=Merge-konfliktkontroll pågår. Försök igen senare.

options/locale/locale_tr-TR.ini

-1
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ pulls.manually_merged_as=Değişiklik isteği <a rel="nofollow" class="ui sha" h
13151315
pulls.is_closed=Değişiklik isteği kapatıldı.
13161316
pulls.has_merged=Değişiklik isteği birleştirildi.
13171317
pulls.title_wip_desc=`Değişiklik isteğinin yanlışlıkla birleştirilmesini önlemek için, <a href="#">başlığı <strong>%s</strong> ile başlatın</a>`
1318-
pulls.cannot_merge_work_in_progress=Bu değişiklik isteği devam eden bir çalışma olarak işaretlendi. Hazır olduğunda <strong>%s</strong> ön ekini başlıktan kaldırın
13191318
pulls.data_broken=Bu değişiklik isteği, çatallama bilgilerinin eksik olması nedeniyle bozuldu.
13201319
pulls.files_conflicted=Bu değişiklik isteğinde, hedef dalla çakışan değişiklikler var.
13211320
pulls.is_checking=Birleştirme çakışması denetimi devam ediyor. Birkaç dakika sonra tekrar deneyin.

0 commit comments

Comments
 (0)