Skip to content

Commit 9be19ff

Browse files
authored
Merge branch 'main' into fix-21448
2 parents 0e2098a + 9fb251f commit 9be19ff

File tree

10 files changed

+199
-8
lines changed

10 files changed

+199
-8
lines changed

CHANGELOG.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,86 @@ 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.17.3](https://github.com/go-gitea/gitea/releases/tag/v1.17.3) - 2022-10-15
8+
9+
* SECURITY
10+
* Sanitize and Escape refs in git backend (#21464) (#21463)
11+
* Bump `golang.org/x/text` (#21412) (#21413)
12+
* Update bluemonday (#21281) (#21287)
13+
* ENHANCEMENTS
14+
* Fix empty container layer history and UI (#21251) (#21278)
15+
* Use en-US as fallback when using other default language (#21200) (#21256)
16+
* Make the vscode clone link respect transport protocol (#20557) (#21128)
17+
* BUGFIXES
18+
* Do DB update after merge in hammer context (#21401) (#21416)
19+
* Add Num{Issues,Pulls} stats checks (#21404) (#21414)
20+
* Stop logging CheckPath returns error: context canceled (#21064) (#21405)
21+
* Parse OAuth Authorization header when request omits client secret (#21351) (#21374)
22+
* Ignore port for loopback redirect URIs (#21293) (#21373)
23+
* Set SemverCompatible to false for Conan packages (#21275) (#21366)
24+
* Tag list should include draft releases with existing tags (#21263) (#21365)
25+
* Fix linked account translation (#21331) (#21334)
26+
* Make NuGet service index publicly accessible (#21242) (#21277)
27+
* Foreign ID conflicts if ID is 0 for each item (#21271) (#21272)
28+
* Use absolute links in feeds (#21229) (#21265)
29+
* Prevent invalid behavior for file reviewing when loading more files (#21230) (#21234)
30+
* Respect `REQUIRE_SIGNIN_VIEW` for packages (#20873) (#21232)
31+
* Treat git object mode 40755 as directory (#21195) (#21218)
32+
* Allow uppercase ASCII alphabet in PyPI package names (#21095) (#21217)
33+
* Fix limited user cannot view himself's profile (#21212)
34+
* Fix template bug of admin monitor (#21209)
35+
* Fix reaction of issues (#21185) (#21196)
36+
* Fix CSV diff for added/deleted files (#21189) (#21193)
37+
* Fix pagination limit parameter problem (#21111)
38+
* TESTING
39+
* Fix missing m.Run() in TestMain (#21341)
40+
* BUILD
41+
* Use Go 1.19 fmt for Gitea 1.17, sync emoji data (#21239)
42+
43+
## [1.17.2](https://github.com/go-gitea/gitea/releases/tag/v1.17.2) - 2022-09-06
44+
45+
* SECURITY
46+
* Double check CloneURL is acceptable (#20869) (#20892)
47+
* Add more checks in migration code (#21011) (#21050)
48+
* ENHANCEMENTS
49+
* Fix hard-coded timeout and error panic in API archive download endpoint (#20925) (#21051)
50+
* Improve arc-green code theme (#21039) (#21042)
51+
* Enable contenthash in filename for dynamic assets (#20813) (#20932)
52+
* Don't open new page for ext wiki on same repository (#20725) (#20910)
53+
* Disable doctor logging on panic (#20847) (#20898)
54+
* Remove calls to load Mirrors in user.Dashboard (#20855) (#20897)
55+
* Update codemirror to 5.65.8 (#20875)
56+
* Rework repo buttons (#20602, #20718) (#20719)
57+
* BUGFIXES
58+
* Ensure delete user deletes all comments (#21067) (#21068)
59+
* Delete unreferenced packages when deleting a package version (#20977) (#21060)
60+
* Redirect if user does not exist on admin pages (#20981) (#21059)
61+
* Set uploadpack.allowFilter etc on gitea serv to enable partial clones with ssh (#20902) (#21058)
62+
* Fix 500 on time in timeline API (#21052) (#21057)
63+
* Fill the specified ref in webhook test payload (#20961) (#21055)
64+
* Add another index for Action table on postgres (#21033) (#21054)
65+
* Fix broken insecureskipverify handling in redis connection uris (#20967) (#21053)
66+
* Add Dev, Peer and Optional dependencies to npm PackageMetadataVersion (#21017) (#21044)
67+
* Do not add links to Posters or Assignees with ID < 0 (#20577) (#21037)
68+
* Fix modified due date message (#20388) (#21032)
69+
* Fix missed sort bug (#21006)
70+
* Fix input.value attr for RequiredClaimName/Value (#20946) (#21001)
71+
* Change review buttons to icons to make space for text (#20934) (#20978)
72+
* Fix download archiver of a commit (#20962) (#20971)
73+
* Return 404 NotFound if requested attachment does not exist (#20886) (#20941)
74+
* Set no-tags in git fetch on compare (#20893) (#20936)
75+
* Allow multiple metadata files for Maven packages (#20674) (#20916)
76+
* Increase Content field size of gpg_key and public_key to MEDIUMTEXT (#20896) (#20911)
77+
* Fix mirror address setting not working (#20850) (#20904)
78+
* Fix push mirror address backend get error Address cause setting page display error (#20593) (#20901)
79+
* Fix panic when an invalid oauth2 name is passed (#20820) (#20900)
80+
* In PushMirrorsIterate and MirrorsIterate if limit is negative do not set it (#20837) (#20899)
81+
* Ensure that graceful start-up is informed of unused SSH listener (#20877) (#20888)
82+
* Pad GPG Key ID with preceding zeroes (#20878) (#20885)
83+
* Fix SQL Query for `SearchTeam` (#20844) (#20872)
84+
* Fix the mode of custom dir to 0700 in docker-rootless (#20861) (#20867)
85+
* Fix UI mis-align for PR commit history (#20845) (#20859)
86+
787
## [1.17.1](https://github.com/go-gitea/gitea/releases/tag/1.17.1) - 2022-08-17
888

989
* SECURITY

build/code-batch-process.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ Example:
206206
`, "file-batch-exec")
207207
}
208208

209+
func getGoVersion() string {
210+
goModFile, err := os.ReadFile("go.mod")
211+
if err != nil {
212+
log.Fatalf(`Faild to read "go.mod": %v`, err)
213+
os.Exit(1)
214+
}
215+
goModVersionRegex := regexp.MustCompile(`go \d+\.\d+`)
216+
goModVersionLine := goModVersionRegex.Find(goModFile)
217+
return string(goModVersionLine[3:])
218+
}
219+
209220
func newFileCollectorFromMainOptions(mainOptions map[string]string) (fc *fileCollector, err error) {
210221
fileFilter := mainOptions["file-filter"]
211222
if fileFilter == "" {
@@ -270,7 +281,7 @@ func main() {
270281
log.Print("the -d option is not supported by gitea-fmt")
271282
}
272283
cmdErrors = append(cmdErrors, giteaFormatGoImports(files, containsString(subArgs, "-l"), containsString(subArgs, "-w")))
273-
cmdErrors = append(cmdErrors, passThroughCmd("go", append([]string{"run", os.Getenv("GOFUMPT_PACKAGE"), "-extra", "-lang", "1.17"}, substArgs...)))
284+
cmdErrors = append(cmdErrors, passThroughCmd("go", append([]string{"run", os.Getenv("GOFUMPT_PACKAGE"), "-extra", "-lang", getGoVersion()}, substArgs...)))
274285
case "misspell":
275286
cmdErrors = append(cmdErrors, passThroughCmd("go", append([]string{"run", os.Getenv("MISSPELL_PACKAGE")}, substArgs...)))
276287
default:

contrib/init/gentoo/gitea

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,43 @@
22

33
DIR=/var/lib/gitea
44
USER=git
5+
HOME=/home/${USER}
6+
GITEA_WORK_DIR=${DIR}
7+
EXECUTABLE=/usr/local/bin/gitea
58

9+
export USER
10+
export HOME
11+
export GITEA_WORK_DIR
12+
13+
name=$RC_SVCNAME
14+
cfgfile="/etc/$RC_SVCNAME/app.ini"
15+
command="${EXECUTABLE}"
16+
command_user="${USER}"
17+
command_args="web -c /etc/$RC_SVCNAME/app.ini"
18+
command_background="yes"
19+
pidfile="/run/$RC_SVCNAME/$RC_SVCNAME.pid"
620
start_stop_daemon_args="--user ${USER} --chdir ${DIR}"
7-
command="/usr/local/bin/gitea"
8-
command_args="web -c /etc/gitea/app.ini"
9-
command_background=yes
10-
pidfile=/run/gitea.pid
1121

1222
depend()
1323
{
1424
need net
25+
###
26+
# Don't forget to add the database service requirements
27+
###
28+
#after postgresql
29+
#after mysql
30+
#after mariadb
31+
#after memcached
32+
#after redis
33+
}
34+
35+
start_pre()
36+
{
37+
checkpath --directory --owner $command_user:$command_user --mode 0750 \
38+
/run/$RC_SVCNAME /var/log/$RC_SVCNAME
39+
##
40+
# If you want to bind Gitea to a port below 1024, uncomment
41+
# the value below
42+
##
43+
#setcap cap_net_bind_service=+ep "${EXECUTABLE}"
1544
}

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.17.1
21+
version: 1.17.3
2222
minGoVersion: 1.18
2323
goVersion: 1.19
2424
minNodeVersion: 14

options/locale/locale_es-ES.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ users=Usuarios
268268
organizations=Organizaciones
269269
search=Buscar
270270
code=Código
271+
search.type.tooltip=Tipo de búsqueda
271272
search.fuzzy=Parcial
272273
search.match=Coincidir
274+
search.match.tooltip=Incluye sólo los resultados que coincidan con el término de búsqueda exacto
273275
code_search_unavailable=Actualmente la búsqueda de código no está disponible. Póngase en contacto con el administrador de su sitio.
274276
repo_no_results=No se ha encontrado ningún repositorio coincidente.
275277
user_no_results=No se ha encontrado ningún usuario coincidente.
@@ -507,6 +509,7 @@ activity=Actividad pública
507509
followers=Seguidores
508510
starred=Repositorios Favoritos
509511
watched=Repositorios seguidos
512+
code=Código
510513
projects=Proyectos
511514
following=Siguiendo
512515
follow=Seguir
@@ -1231,6 +1234,8 @@ issues.new.add_reviewer_title=Solicitar revisión
12311234
issues.choose.get_started=Comenzar
12321235
issues.choose.blank=Predeterminado
12331236
issues.choose.blank_about=Crear una incidencia a partir de la plantilla predeterminada.
1237+
issues.choose.ignore_invalid_templates=Las plantillas no válidas han sido ignoradas
1238+
issues.choose.invalid_templates=%v plantilla(s) no válida(s) encontradas
12341239
issues.no_ref=Ninguna Rama/Etiqueta especificada
12351240
issues.create=Crear incidencia
12361241
issues.new_label=Nueva Etiqueta
@@ -1761,8 +1766,10 @@ activity.git_stats_deletion_n=%d eliminaciones
17611766

17621767
search=Buscar
17631768
search.search_repo=Buscar repositorio
1769+
search.type.tooltip=Tipo de búsqueda
17641770
search.fuzzy=Parcial
17651771
search.match=Coincidir
1772+
search.match.tooltip=Incluye sólo los resultados que coincidan con el término de búsqueda exacto
17661773
search.results=Resultados de la búsqueda para "%s" en <a href="%s">%s</a>
17671774
search.code_no_results=No se ha encontrado código de fuente que coincida con su término de búsqueda.
17681775
search.code_search_unavailable=Actualmente la búsqueda de código no está disponible. Póngase en contacto con el administrador de su sitio.
@@ -1896,6 +1903,7 @@ settings.confirm_delete=Eliminar este repositorio
18961903
settings.add_collaborator=Añadir colaborador
18971904
settings.add_collaborator_success=El nuevo colaborador ha sido añadido.
18981905
settings.add_collaborator_inactive_user=No se puede añadir un usuario inactivo como colaborador.
1906+
settings.add_collaborator_owner=No se puede añadir un propietario como colaborador.
18991907
settings.add_collaborator_duplicate=El colaborador ya está añadido a este repositorio.
19001908
settings.delete_collaborator=Eliminar
19011909
settings.collaborator_deletion=Eliminar colaborador
@@ -1954,6 +1962,8 @@ settings.event_delete=Eliminar
19541962
settings.event_delete_desc=Rama o etiqueta eliminada.
19551963
settings.event_fork=Fork
19561964
settings.event_fork_desc=Repositorio forkeado.
1965+
settings.event_wiki=Wiki
1966+
settings.event_wiki_desc=Página de la Wiki creada, renombrada, editada o eliminada.
19571967
settings.event_release=Lanzamiento
19581968
settings.event_release_desc=Lanzamiento publicado, actualizado o eliminado en un repositorio.
19591969
settings.event_push=Push
@@ -2305,6 +2315,7 @@ create_org=Crear Organización
23052315
repo_updated=Actualizado
23062316
people=Personas
23072317
teams=Equipos
2318+
code=Código
23082319
lower_members=miembros
23092320
lower_repositories=repositorios
23102321
create_new_team=Nuevo equipo
@@ -3029,6 +3040,9 @@ pin=Fijar notificación
30293040
mark_as_read=Marcar como leído
30303041
mark_as_unread=Marcar como no leído
30313042
mark_all_as_read=Marcar todo como leído
3043+
subscriptions=Suscripciones
3044+
watching=Siguiendo
3045+
no_subscriptions=Sin suscripciones
30323046

30333047
[gpg]
30343048
default_key=Firmado con clave predeterminada
@@ -3088,6 +3102,7 @@ container.details.platform=Plataforma
30883102
container.details.repository_site=Sitio del repositorio
30893103
container.details.documentation_site=Sitio de documentación
30903104
container.pull=Arrastra la imagen desde la línea de comandos:
3105+
container.digest=Resumen:
30913106
container.documentation=Para más información sobre el registro de Container, consulte <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/container/">la documentación</a>.
30923107
container.multi_arch=SO / Arquitectura
30933108
container.layers=Capas de imagen

0 commit comments

Comments
 (0)