Skip to content

Commit 5506aae

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: List all Debian package versions in `Packages` (go-gitea#27786) Fix merge base commit for fast-forwarded GitLab PRs (go-gitea#27825) Fix bad method call when deleting user secrets via API (go-gitea#27829) Change katex limits (go-gitea#27823) Dockerfile small refactor (go-gitea#27757) Use GitLab's squash_commit_sha when available (go-gitea#27824) [skip ci] Updated translations via Crowdin Upgrade xorm to 1.3.4 (go-gitea#27807)
2 parents 3db348d + b36e2ca commit 5506aae

File tree

15 files changed

+167
-86
lines changed

15 files changed

+167
-86
lines changed

Dockerfile

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Build stage
1+
# Build stage
22
FROM docker.io/library/golang:1.21-alpine3.18 AS build-env
33

44
ARG GOPROXY
@@ -9,20 +9,38 @@ ARG TAGS="sqlite sqlite_unlock_notify"
99
ENV TAGS "bindata timetzdata $TAGS"
1010
ARG CGO_EXTRA_CFLAGS
1111

12-
#Build deps
13-
RUN apk --no-cache add build-base git nodejs npm
12+
# Build deps
13+
RUN apk --no-cache add \
14+
build-base \
15+
git \
16+
nodejs \
17+
npm \
18+
&& rm -rf /var/cache/apk/*
1419

15-
#Setup repo
20+
# Setup repo
1621
COPY . ${GOPATH}/src/code.gitea.io/gitea
1722
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
1823

19-
#Checkout version if set
24+
# Checkout version if set
2025
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2126
&& make clean-all build
2227

2328
# Begin env-to-ini build
2429
RUN go build contrib/environment-to-ini/environment-to-ini.go
2530

31+
# Copy local files
32+
COPY docker/root /tmp/local
33+
34+
# Set permissions
35+
RUN chmod 755 /tmp/local/usr/bin/entrypoint \
36+
/tmp/local/usr/local/bin/gitea \
37+
/tmp/local/etc/s6/gitea/* \
38+
/tmp/local/etc/s6/openssh/* \
39+
/tmp/local/etc/s6/.s6-svscan/* \
40+
/go/src/code.gitea.io/gitea/gitea \
41+
/go/src/code.gitea.io/gitea/environment-to-ini
42+
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
43+
2644
FROM docker.io/library/alpine:3.18
2745
LABEL maintainer="[email protected]"
2846

@@ -39,7 +57,8 @@ RUN apk --no-cache add \
3957
s6 \
4058
sqlite \
4159
su-exec \
42-
gnupg
60+
gnupg \
61+
&& rm -rf /var/cache/apk/*
4362

4463
RUN addgroup \
4564
-S -g 1000 \
@@ -61,10 +80,7 @@ VOLUME ["/data"]
6180
ENTRYPOINT ["/usr/bin/entrypoint"]
6281
CMD ["/bin/s6-svscan", "/etc/s6"]
6382

64-
COPY docker/root /
83+
COPY --from=build-env /tmp/local /
6584
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
6685
COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
6786
COPY --from=build-env /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh
68-
RUN chmod 755 /usr/bin/entrypoint /app/gitea/gitea /usr/local/bin/gitea /usr/local/bin/environment-to-ini
69-
RUN chmod 755 /etc/s6/gitea/* /etc/s6/openssh/* /etc/s6/.s6-svscan/*
70-
RUN chmod 644 /etc/profile.d/gitea_bash_autocomplete.sh

Dockerfile.rootless

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Build stage
1+
# Build stage
22
FROM docker.io/library/golang:1.21-alpine3.18 AS build-env
33

44
ARG GOPROXY
@@ -10,19 +10,35 @@ ENV TAGS "bindata timetzdata $TAGS"
1010
ARG CGO_EXTRA_CFLAGS
1111

1212
#Build deps
13-
RUN apk --no-cache add build-base git nodejs npm
13+
RUN apk --no-cache add \
14+
build-base \
15+
git \
16+
nodejs \
17+
npm \
18+
&& rm -rf /var/cache/apk/*
1419

15-
#Setup repo
20+
# Setup repo
1621
COPY . ${GOPATH}/src/code.gitea.io/gitea
1722
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
1823

19-
#Checkout version if set
24+
# Checkout version if set
2025
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2126
&& make clean-all build
2227

2328
# Begin env-to-ini build
2429
RUN go build contrib/environment-to-ini/environment-to-ini.go
2530

31+
# Copy local files
32+
COPY docker/rootless /tmp/local
33+
34+
# Set permissions
35+
RUN chmod 755 /tmp/local/usr/local/bin/docker-entrypoint.sh \
36+
/tmp/local/usr/local/bin/docker-setup.sh \
37+
/tmp/local/usr/local/bin/gitea \
38+
/go/src/code.gitea.io/gitea/gitea \
39+
/go/src/code.gitea.io/gitea/environment-to-ini
40+
RUN chmod 644 /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete
41+
2642
FROM docker.io/library/alpine:3.18
2743
LABEL maintainer="[email protected]"
2844

@@ -35,7 +51,8 @@ RUN apk --no-cache add \
3551
gettext \
3652
git \
3753
curl \
38-
gnupg
54+
gnupg \
55+
&& rm -rf /var/cache/apk/*
3956

4057
RUN addgroup \
4158
-S -g 1000 \
@@ -51,26 +68,23 @@ RUN addgroup \
5168
RUN mkdir -p /var/lib/gitea /etc/gitea
5269
RUN chown git:git /var/lib/gitea /etc/gitea
5370

54-
COPY docker/rootless /
71+
COPY --from=build-env /tmp/local /
5572
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
5673
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
5774
COPY --from=build-env /go/src/code.gitea.io/gitea/contrib/autocompletion/bash_autocomplete /etc/profile.d/gitea_bash_autocomplete.sh
58-
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh /usr/local/bin/docker-setup.sh /app/gitea/gitea /usr/local/bin/gitea /usr/local/bin/environment-to-ini
59-
RUN chmod 644 /etc/profile.d/gitea_bash_autocomplete.sh
6075

61-
#git:git
76+
# git:git
6277
USER 1000:1000
6378
ENV GITEA_WORK_DIR /var/lib/gitea
6479
ENV GITEA_CUSTOM /var/lib/gitea/custom
6580
ENV GITEA_TEMP /tmp/gitea
6681
ENV TMPDIR /tmp/gitea
6782

68-
#TODO add to docs the ability to define the ini to load (useful to test and revert a config)
83+
# TODO add to docs the ability to define the ini to load (useful to test and revert a config)
6984
ENV GITEA_APP_INI /etc/gitea/app.ini
7085
ENV HOME "/var/lib/gitea/git"
7186
VOLUME ["/var/lib/gitea", "/etc/gitea"]
7287
WORKDIR /var/lib/gitea
7388

7489
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/bin/docker-entrypoint.sh"]
7590
CMD []
76-

docker/root/usr/bin/entrypoint

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ ! -x /bin/sh ]; then
77
fi
88

99
if [ "${USER}" != "git" ]; then
10-
# rename user
10+
# Rename user
1111
sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
1212
fi
1313

@@ -19,13 +19,13 @@ if [ -z "${USER_UID}" ]; then
1919
USER_UID="`id -u ${USER}`"
2020
fi
2121

22-
## Change GID for USER?
22+
# Change GID for USER?
2323
if [ -n "${USER_GID}" ] && [ "${USER_GID}" != "`id -g ${USER}`" ]; then
2424
sed -i -e "s/^${USER}:\([^:]*\):[0-9]*/${USER}:\1:${USER_GID}/" /etc/group
2525
sed -i -e "s/^${USER}:\([^:]*\):\([0-9]*\):[0-9]*/${USER}:\1:\2:${USER_GID}/" /etc/passwd
2626
fi
2727

28-
## Change UID for USER?
28+
# Change UID for USER?
2929
if [ -n "${USER_UID}" ] && [ "${USER_UID}" != "`id -u ${USER}`" ]; then
3030
sed -i -e "s/^${USER}:\([^:]*\):[0-9]*:\([0-9]*\)/${USER}:\1:${USER_UID}:\2/" /etc/passwd
3131
fi

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ require (
121121
mvdan.cc/xurls/v2 v2.5.0
122122
strk.kbt.io/projects/go/libravatar v0.0.0-20191008002943-06d1c002b251
123123
xorm.io/builder v0.3.13
124-
xorm.io/xorm v1.3.4-0.20231017094142-dbe499091a7e
124+
xorm.io/xorm v1.3.4
125125
)
126126

127127
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,5 +1648,5 @@ strk.kbt.io/projects/go/libravatar v0.0.0-20191008002943-06d1c002b251/go.mod h1:
16481648
xorm.io/builder v0.3.11-0.20220531020008-1bd24a7dc978/go.mod h1:aUW0S9eb9VCaPohFCH3j7czOx1PMW3i1HrSzbLYGBSE=
16491649
xorm.io/builder v0.3.13 h1:a3jmiVVL19psGeXx8GIurTp7p0IIgqeDmwhcR6BAOAo=
16501650
xorm.io/builder v0.3.13/go.mod h1:aUW0S9eb9VCaPohFCH3j7czOx1PMW3i1HrSzbLYGBSE=
1651-
xorm.io/xorm v1.3.4-0.20231017094142-dbe499091a7e h1:oL+ktEW+iSrCXU6IauJ9csZFATEmawkhsq/MAoHTdwo=
1652-
xorm.io/xorm v1.3.4-0.20231017094142-dbe499091a7e/go.mod h1:qFJGFoVYbbIdnz2vaL5OxSQ2raleMpyRRalnq3n9OJo=
1651+
xorm.io/xorm v1.3.4 h1:vWFKzR3DhGUDl5b4srhUjhDwjxkZAc4C7BFszpu0swI=
1652+
xorm.io/xorm v1.3.4/go.mod h1:qFJGFoVYbbIdnz2vaL5OxSQ2raleMpyRRalnq3n9OJo=

models/git/commit_status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func GetCommitStatuses(ctx context.Context, repo *repo_model.Repository, sha str
235235

236236
countSession := listCommitStatusesStatement(ctx, repo, sha, opts)
237237
countSession = db.SetSessionPagination(countSession, opts)
238-
maxResults, err := countSession.OrderBy("1").Count(new(CommitStatus))
238+
maxResults, err := countSession.Count(new(CommitStatus))
239239
if err != nil {
240240
log.Error("Count PRs: %v", err)
241241
return nil, maxResults, err

models/packages/container/search.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ func (opts *ImageTagsSearchOptions) configureOrderBy(e db.Engine) {
207207
default:
208208
e.Desc("package_version.created_unix")
209209
}
210+
211+
// Sort by id for stable order with duplicates in the other field
212+
e.Asc("package_version.id")
210213
}
211214

212215
// SearchImageTags gets a sorted list of the tags of an image

models/packages/debian/search.go

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ type PackageSearchOptions struct {
2121
Architecture string
2222
}
2323

24-
// SearchLatestPackages gets the latest packages matching the search options
25-
func SearchLatestPackages(ctx context.Context, opts *PackageSearchOptions) ([]*packages.PackageFileDescriptor, error) {
24+
func (opts *PackageSearchOptions) toCond() builder.Cond {
2625
var cond builder.Cond = builder.Eq{
2726
"package_file.is_lead": true,
2827
"package.type": packages.TypeDebian,
@@ -62,28 +61,40 @@ func SearchLatestPackages(ctx context.Context, opts *PackageSearchOptions) ([]*p
6261
})
6362
}
6463

65-
cond = cond.
66-
And(builder.Expr("pv2.id IS NULL"))
64+
return cond
65+
}
6766

68-
joinCond := builder.
69-
Expr("package_version.package_id = pv2.package_id AND (package_version.created_unix < pv2.created_unix OR (package_version.created_unix = pv2.created_unix AND package_version.id < pv2.id))").
70-
And(builder.Eq{"pv2.is_internal": false})
67+
// ExistPackages tests if there are packages matching the search options
68+
func ExistPackages(ctx context.Context, opts *PackageSearchOptions) (bool, error) {
69+
return db.GetEngine(ctx).
70+
Table("package_file").
71+
Join("INNER", "package_version", "package_version.id = package_file.version_id").
72+
Join("INNER", "package", "package.id = package_version.package_id").
73+
Where(opts.toCond()).
74+
Exist(new(packages.PackageFile))
75+
}
7176

72-
pfs := make([]*packages.PackageFile, 0, 10)
73-
err := db.GetEngine(ctx).
77+
// SearchPackages gets the packages matching the search options
78+
func SearchPackages(ctx context.Context, opts *PackageSearchOptions, iter func(*packages.PackageFileDescriptor)) error {
79+
return db.GetEngine(ctx).
7480
Table("package_file").
7581
Select("package_file.*").
7682
Join("INNER", "package_version", "package_version.id = package_file.version_id").
77-
Join("LEFT", "package_version pv2", joinCond).
7883
Join("INNER", "package", "package.id = package_version.package_id").
79-
Where(cond).
80-
Desc("package_version.created_unix").
81-
Find(&pfs)
82-
if err != nil {
83-
return nil, err
84-
}
84+
Where(opts.toCond()).
85+
Asc("package.lower_name", "package_version.created_unix").
86+
Iterate(new(packages.PackageFile), func(_ int, bean any) error {
87+
pf := bean.(*packages.PackageFile)
88+
89+
pfd, err := packages.GetPackageFileDescriptor(ctx, pf)
90+
if err != nil {
91+
return err
92+
}
8593

86-
return packages.GetPackageFileDescriptors(ctx, pfs)
94+
iter(pfd)
95+
96+
return nil
97+
})
8798
}
8899

89100
// GetDistributions gets all available distributions

models/packages/package_version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ func (opts *PackageSearchOptions) configureOrderBy(e db.Engine) {
278278
default:
279279
e.Desc("package_version.created_unix")
280280
}
281+
282+
// Sort by id for stable order with duplicates in the other field
283+
e.Asc("package_version.id")
281284
}
282285

283286
// SearchVersions gets all versions of packages matching the search options

options/locale/locale_fr-FR.ini

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ issue_assigned.pull=@%[1]s vous a assigné à la demande d’ajout %[2]s dans le
456456
issue_assigned.issue=@%[1]s vous a assigné le ticket %[2]s dans le dépôt %[3]s.
457457
458458
issue.x_mentioned_you=<b>@%s</b> vous a mentionné:
459-
issue.action.force_push=<b>%[1]s</b> a forcé la mise à jour de <b>%[2]s</b> depuis %[3]s vers %[4]s.
459+
issue.action.force_push=<b>%[1]s</b> a forcé <b>%[2]s</b> de %[3]s vers %[4]s.
460460
issue.action.push_1=<b>@%[1]s</b> a soumis %[3]d révision sur %[2]s
461461
issue.action.push_n=<b>@%[1]s</b> a soumis %[3]d révisions sur %[2]s
462462
issue.action.close=<b>@%[1]s</b> a fermé #%[2]d.
@@ -856,7 +856,7 @@ oauth2_client_secret_hint=Le secret ne sera plus affiché après avoir quitté o
856856
oauth2_application_edit=Éditer
857857
oauth2_application_create_description=Les applications OAuth2 permettent à votre application tierce d'accéder aux comptes d'utilisateurs de cette instance.
858858
oauth2_application_remove_description=La suppression d'une application OAuth2 l'empêchera d'accéder aux comptes d'utilisateurs autorisés sur cette instance. Poursuivre ?
859-
oauth2_application_locked=Gitea préinstalle des applications OAuth2 au démarrage si elles sont activées dans la configuration. Pour éviter des comportements inattendus, celles-ci ne peuvent ni être éditées ni supprimées. Veuillez vous référer à la documentation OAuth2 pour plus d'informations.
859+
oauth2_application_locked=Gitea préinstalle des applications OAuth2 au démarrage si elles sont activées dans la configuration. Pour éviter des comportements inattendus, celles-ci ne peuvent être éditées ni supprimées. Veuillez vous référer à la documentation OAuth2 pour plus d'informations.
860860

861861
authorized_oauth2_applications=Applications OAuth2 autorisées
862862
authorized_oauth2_applications_description=Vous avez autorisé l'accès à votre compte personnel Gitea à ces applications tierces. Veuillez révoquer l'accès aux applications dont vous n'avez plus besoin.
@@ -937,7 +937,7 @@ template_description=Les référentiels de modèles permettent aux utilisateurs
937937
visibility=Visibilité
938938
visibility_description=Seuls le propriétaire ou les membres de l'organisation, s'ils ont des droits, seront en mesure de le voir.
939939
visibility_helper=Rendre le dépôt privé
940-
visibility_helper_forced=L'administrateur de votre serveur impose que les nouveaux dépôts soient privés.
940+
visibility_helper_forced=Ladministrateur requière que les nouveaux dépôts soient privés.
941941
visibility_fork_helper=(Changer ceci affectera toutes les bifurcations.)
942942
clone_helper=Besoin d'aide pour dupliquer ? Visitez <a target="_blank" rel="noopener noreferrer" href="%s">l'aide</a>.
943943
fork_repo=Bifurquer le dépôt
@@ -1595,7 +1595,7 @@ issues.error_modifying_due_date=Impossible de modifier l'échéance.
15951595
issues.error_removing_due_date=Impossible de supprimer l'échéance.
15961596
issues.push_commit_1=a ajouté %d révision %s
15971597
issues.push_commits_n=a ajouté %d révisions %s
1598-
issues.force_push_codes=`a forcé la soumission de %[1]s depuis <a class="ui sha" href="%[3]s"><code>%[2]s</code></a> à <a class="ui sha" href="%[5]s"><code>%[4]s</code></a> %[6]s.`
1598+
issues.force_push_codes=`a forcé %[1]s de <a class="ui sha" href="%[3]s"><code>%[2]s</code></a> à <a class="ui sha" href="%[5]s"><code>%[4]s</code></a> %[6]s.`
15991599
issues.force_push_compare=Comparer
16001600
issues.due_date_form=aaaa-mm-jj
16011601
issues.due_date_form_add=Ajouter une échéance
@@ -1725,7 +1725,7 @@ pulls.manually_merged=Fusionné manuellement
17251725
pulls.merged_info_text=La branche %s peut maintenant être supprimée.
17261726
pulls.is_closed=La demande d’ajout a été fermée.
17271727
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.`
1728-
pulls.cannot_merge_work_in_progress=Cette demande d'ajout est marquée comme en cours de chantier.
1728+
pulls.cannot_merge_work_in_progress=Cette demande dajout est en chantier.
17291729
pulls.still_in_progress=Toujours en cours ?
17301730
pulls.add_prefix=Ajouter le préfixe <strong>%s</strong>
17311731
pulls.remove_prefix=Enlever le préfixe <strong>%s</strong>
@@ -1758,7 +1758,7 @@ pulls.wrong_commit_id=l'ID de la révision doit être un ID de révision sur la
17581758

17591759
pulls.no_merge_desc=Cette demande d’ajout ne peut être fusionnée car toutes les options de fusion du dépôt sont désactivées.
17601760
pulls.no_merge_helper=Activez des options de fusion dans les paramètres du dépôt ou fusionnez la demande manuellement.
1761-
pulls.no_merge_wip=Cette demande d'ajout ne peut pas être fusionnée car elle est marquée comme en cours de chantier.
1761+
pulls.no_merge_wip=Cette demande dajout ne peut pas être fusionnée car elle est marquée en chantier.
17621762
pulls.no_merge_not_ready=Cette demande d’ajout n’est pas prête à être fusionnée, vérifiez les évaluations en cours et le contrôle qualité.
17631763
pulls.no_merge_access=Vous n'êtes pas autorisé⋅e à fusionner cette demande d'ajout.
17641764
pulls.merge_pull_request=Créer une révision de fusion
@@ -2278,11 +2278,11 @@ settings.protect_this_branch_desc=Empêche les suppressions et limite les pouss
22782278
settings.protect_disable_push=Désactiver la soumission
22792279
settings.protect_disable_push_desc=Aucune soumission ne sera possible sur cette branche.
22802280
settings.protect_enable_push=Activer la soumission
2281-
settings.protect_enable_push_desc=Toute personne ayant un accès en écriture sera autorisée à soumettre sur cette branche (mais pas de soumission de force).
2281+
settings.protect_enable_push_desc=Toute personne ayant un accès en écriture sera autorisée à soumettre sur cette branche (sans forcer).
22822282
settings.protect_enable_merge=Activer la fusion
22832283
settings.protect_enable_merge_desc=Toute personne ayant un accès en écriture sera autorisée à fusionner les demandes d'ajout dans cette branche.
22842284
settings.protect_whitelist_committers=Liste blanche des soumissions
2285-
settings.protect_whitelist_committers_desc=Seuls les utilisateurs ou les équipes autorisés pourront soumettre sur cette branche (mais pas de soumission de force).
2285+
settings.protect_whitelist_committers_desc=Seuls les utilisateurs ou les équipes autorisés pourront soumettre sur cette branche (sans forcer).
22862286
settings.protect_whitelist_deploy_keys=Mettez les clés de déploiement sur liste blanche avec accès en écriture pour soumettre.
22872287
settings.protect_whitelist_users=Utilisateurs sur liste blanche :
22882288
settings.protect_whitelist_search_users=Rechercher des utilisateurs…
@@ -3404,8 +3404,8 @@ rubygems.install=Pour installer le paquet en utilisant gem, exécutez la command
34043404
rubygems.install2=ou ajoutez-le au Gemfile :
34053405
rubygems.dependencies.runtime=Dépendances d'exécution
34063406
rubygems.dependencies.development=Dépendances de développement
3407-
rubygems.required.ruby=Nécessite la version de Ruby
3408-
rubygems.required.rubygems=Nécessite la version de RubyGem
3407+
rubygems.required.ruby=Nécessite Ruby en version
3408+
rubygems.required.rubygems=Nécessite RubyGem en version
34093409
swift.registry=Configurez ce registre à partir d'un terminal :
34103410
swift.install=Ajoutez le paquet dans votre fichier <code>Package.swift</code>:
34113411
swift.install2=et exécutez la commande suivante :
@@ -3460,7 +3460,7 @@ description=Les secrets seront transmis à certaines actions et ne pourront pas
34603460
none=Il n'y a pas encore de secrets.
34613461
creation=Ajouter un secret
34623462
creation.name_placeholder=Caractères alphanumériques ou tirets bas uniquement, insensibles à la casse, ne peut commencer par GITEA_ ou GITHUB_.
3463-
creation.value_placeholder=Entrez n'importe quoi. Les blancs cernant seront taillés.
3463+
creation.value_placeholder=Entrez nimporte quoi. Les blancs cernant seront taillés.
34643464
creation.success=Le secret "%s" a été ajouté.
34653465
creation.failed=Impossible d'ajouter le secret.
34663466
deletion=Supprimer le secret

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ func Routes() *web.Route {
961961
m.Group("/actions/secrets", func() {
962962
m.Combo("/{secretname}").
963963
Put(bind(api.CreateOrUpdateSecretOption{}), user.CreateOrUpdateSecret).
964-
Delete(repo.DeleteSecret)
964+
Delete(user.DeleteSecret)
965965
})
966966

967967
m.Get("/followers", user.ListMyFollowers)

0 commit comments

Comments
 (0)