Skip to content

Commit c6cde9d

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: [skip ci] Updated translations via Crowdin Option to delay conflict checking of old pull requests until page view (go-gitea#27779) Update unrs-resolver (go-gitea#34279)
2 parents 319a1c2 + 8cea1ae commit c6cde9d

Some content is hidden

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

55 files changed

+556
-365
lines changed

custom/conf/app.example.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,10 @@ LEVEL = Info
11551155
;;
11561156
;; Retarget child pull requests to the parent pull request branch target on merge of parent pull request. It only works on merged PRs where the head and base branch target the same repo.
11571157
;RETARGET_CHILDREN_ON_MERGE = true
1158+
;;
1159+
;; Delay mergeable check until page view or API access, for pull requests that have not been updated in the specified days when their base branches get updated.
1160+
;; Use "-1" to always check all pull requests (old behavior). Use "0" to always delay the checks.
1161+
;DELAY_CHECK_FOR_INACTIVE_DAYS = 7
11581162

11591163
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
11601164
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

models/issues/pull.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"fmt"
1111
"io"
1212
"regexp"
13-
"strconv"
1413
"strings"
1514

1615
"code.gitea.io/gitea/models/db"
@@ -104,27 +103,6 @@ const (
104103
PullRequestStatusAncestor
105104
)
106105

107-
func (status PullRequestStatus) String() string {
108-
switch status {
109-
case PullRequestStatusConflict:
110-
return "CONFLICT"
111-
case PullRequestStatusChecking:
112-
return "CHECKING"
113-
case PullRequestStatusMergeable:
114-
return "MERGEABLE"
115-
case PullRequestStatusManuallyMerged:
116-
return "MANUALLY_MERGED"
117-
case PullRequestStatusError:
118-
return "ERROR"
119-
case PullRequestStatusEmpty:
120-
return "EMPTY"
121-
case PullRequestStatusAncestor:
122-
return "ANCESTOR"
123-
default:
124-
return strconv.Itoa(int(status))
125-
}
126-
}
127-
128106
// PullRequestFlow the flow of pull request
129107
type PullRequestFlow int
130108

modules/setting/repository.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ var (
8282
AddCoCommitterTrailers bool
8383
TestConflictingPatchesWithGitApply bool
8484
RetargetChildrenOnMerge bool
85+
DelayCheckForInactiveDays int
8586
} `ini:"repository.pull-request"`
8687

8788
// Issue Setting
@@ -200,6 +201,7 @@ var (
200201
AddCoCommitterTrailers bool
201202
TestConflictingPatchesWithGitApply bool
202203
RetargetChildrenOnMerge bool
204+
DelayCheckForInactiveDays int
203205
}{
204206
WorkInProgressPrefixes: []string{"WIP:", "[WIP]"},
205207
// Same as GitHub. See
@@ -215,6 +217,7 @@ var (
215217
PopulateSquashCommentWithCommitMessages: false,
216218
AddCoCommitterTrailers: true,
217219
RetargetChildrenOnMerge: true,
220+
DelayCheckForInactiveDays: 7,
218221
},
219222

220223
// Issue settings

options/locale/locale_cs-CZ.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,6 @@ pulls.add_prefix=Přidat prefix <strong>%s</strong>
18491849
pulls.remove_prefix=Odstranit prefix <strong>%s</strong>
18501850
pulls.data_broken=Tento pull request je rozbitý kvůli chybějícím informacím o rozštěpení.
18511851
pulls.files_conflicted=Tento pull request obsahuje změny, které kolidují s cílovou větví.
1852-
pulls.is_checking=Právě probíhá kontrola konfliktů při sloučení. Zkuste to za chvíli.
18531852
pulls.is_ancestor=Tato větev je již součástí cílové větve. Není co sloučit.
18541853
pulls.is_empty=Změny na této větvi jsou již na cílové větvi. Toto bude prázdný commit.
18551854
pulls.required_status_check_failed=Některé požadované kontroly nebyly úspěšné.

options/locale/locale_de-DE.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,6 @@ pulls.add_prefix=<strong>%s</strong> Präfix hinzufügen
18481848
pulls.remove_prefix=<strong>%s</strong> Präfix entfernen
18491849
pulls.data_broken=Dieser Pull-Requests ist kaputt, da Fork-Informationen gelöscht wurden.
18501850
pulls.files_conflicted=Dieser Pull-Request hat Änderungen, die im Widerspruch zum Ziel-Branch stehen.
1851-
pulls.is_checking=Die Konfliktprüfung läuft noch. Bitte aktualisiere die Seite in wenigen Augenblicken.
18521851
pulls.is_ancestor=Dieser Branch ist bereits im Zielbranch enthalten. Es gibt nichts zu mergen.
18531852
pulls.is_empty=Die Änderungen an diesem Branch sind bereits auf dem Zielbranch. Dies wird ein leerer Commit sein.
18541853
pulls.required_status_check_failed=Einige erforderliche Prüfungen waren nicht erfolgreich.

options/locale/locale_el-GR.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,6 @@ pulls.add_prefix=Προσθήκη <strong>%s</strong> προθέματος
16711671
pulls.remove_prefix=Αφαίρεση <strong>%s</strong> προθέματος
16721672
pulls.data_broken=Αυτό το pull request είναι κατεστραμμένο λόγω των πληροφοριών του fork που λείπουν.
16731673
pulls.files_conflicted=Αυτό το pull request περιέχει αλλαγές που συγκρούονται με το κλάδο προορισμού.
1674-
pulls.is_checking=Ο έλεγχος συγκρούσεων κατά την συγχώνευση είναι σε εξέλιξη. Δοκιμάστε ξανά σε λίγα λεπτά.
16751674
pulls.is_ancestor=Αυτός ο κλάδος περιλαμβάνεται ήδη στον κλάδο προορισμού. Δεν υπάρχει τίποτα για συγχώνευση.
16761675
pulls.is_empty=Οι αλλαγές σε αυτόν τον κλάδο είναι ήδη στον κλάδο προορισμού. Θα είναι μια κενή υποβολή.
16771676
pulls.required_status_check_failed=Ορισμένοι απαιτούμενοι έλεγχοι δεν ήταν επιτυχείς.

options/locale/locale_en-US.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,7 @@ pulls.add_prefix = Add <strong>%s</strong> prefix
18801880
pulls.remove_prefix = Remove <strong>%s</strong> prefix
18811881
pulls.data_broken = This pull request is broken due to missing fork information.
18821882
pulls.files_conflicted = This pull request has changes conflicting with the target branch.
1883-
pulls.is_checking = "Merge conflict checking is in progress. Try again in few moments."
1883+
pulls.is_checking = Checking for merge conflicts ...
18841884
pulls.is_ancestor = "This branch is already included in the target branch. There is nothing to merge."
18851885
pulls.is_empty = "The changes on this branch are already on the target branch. This will be an empty commit."
18861886
pulls.required_status_check_failed = Some required checks were not successful.

options/locale/locale_es-ES.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,6 @@ pulls.add_prefix=Añadir prefijo <strong>%s</strong>
16611661
pulls.remove_prefix=Eliminar prefijo <strong>%s</strong>
16621662
pulls.data_broken=Este pull request está rota debido a que falta información del fork.
16631663
pulls.files_conflicted=Este pull request tiene cambios en conflicto con la rama de destino.
1664-
pulls.is_checking=La comprobación de conflicto de fusión está en progreso. Inténtalo de nuevo en unos momentos.
16651664
pulls.is_ancestor=Esta rama ya está incluida en la rama de destino. No hay nada que fusionar.
16661665
pulls.is_empty=Los cambios en esta rama ya están en la rama de destino. Esto será un commit vacío.
16671666
pulls.required_status_check_failed=Algunos controles requeridos no han tenido éxito.

options/locale/locale_fa-IR.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,6 @@ pulls.add_prefix=اضافه کردن پیشوند <strong>%s</strong>
12851285
pulls.remove_prefix=حذف پیشوند <strong>%s</strong>
12861286
pulls.data_broken=این تقاضای واکشی به دلیل از دست رفتن اطلاعات انشعاب با شکست مواجه شد.
12871287
pulls.files_conflicted=این تقاضای واکشی دارای تغییراتی است که با شاخه هدف تداخل دارد.
1288-
pulls.is_checking=در حال پردازش تداخل در ادغام می‌باشد. لطفاً لحظاتی بعد امتحان کنید.
12891288
pulls.required_status_check_failed=برخی بررسی های ضروری موفقیت آمیز نبود.
12901289
pulls.required_status_check_missing=برخی بررسی های موردنیاز از قلم افتاده است.
12911290
pulls.required_status_check_administrator=مثل یک مدیر، ممکن است شما این تقاضای واکشی را مسکوت بگذارید.

options/locale/locale_fr-FR.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,6 @@ pulls.add_prefix=Ajouter le préfixe <strong>%s</strong>
18791879
pulls.remove_prefix=Enlever le préfixe <strong>%s</strong>
18801880
pulls.data_broken=Cette demande d’ajout est impossible par manque d'informations de bifurcation.
18811881
pulls.files_conflicted=Cette demande d'ajout contient des modifications en conflit avec la branche ciblée.
1882-
pulls.is_checking=Vérification des conflits de fusion en cours. Réessayez dans quelques instants.
18831882
pulls.is_ancestor=Cette branche est déjà présente dans la branche ciblée. Il n'y a rien à fusionner.
18841883
pulls.is_empty=Les changements sur cette branche sont déjà sur la branche cible. Cette révision sera vide.
18851884
pulls.required_status_check_failed=Certains contrôles requis n'ont pas réussi.
@@ -3843,6 +3842,8 @@ deleted.display_name=Projet supprimé
38433842
type-1.display_name=Projet personnel
38443843
type-2.display_name=Projet de dépôt
38453844
type-3.display_name=Projet d’organisation
3845+
enter_fullscreen=Plein écran
3846+
exit_fullscreen=Quitter le plein écran
38463847
38473848
[git.filemode]
38483849
changed_filemode=%[1]s → %[2]s

0 commit comments

Comments
 (0)