mirror of
https://github.com/go-gitea/gitea.git
synced 2026-12-04 22:02:29 -06:00
Compare commits
1 Commits
main
...
copilot/al
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9cb990e83b |
@@ -1,6 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
# Build frontend on the native platform to avoid QEMU-related issues with nodejs ecosystem
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.24 AS frontend-build
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.25 AS frontend-build
|
||||
RUN apk --no-cache add build-base git nodejs pnpm
|
||||
WORKDIR /src
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
@@ -9,7 +9,7 @@ COPY --exclude=.git/ . .
|
||||
RUN make frontend
|
||||
|
||||
# Cross-compile backend on the native platform to avoid slow QEMU emulation
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.24 AS build-env
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.25 AS build-env
|
||||
|
||||
ARG GITEA_VERSION
|
||||
ARG TAGS=""
|
||||
@@ -48,7 +48,7 @@ RUN chmod 755 /tmp/local/usr/bin/entrypoint \
|
||||
/tmp/local/etc/s6/.s6-svscan/* \
|
||||
/go/src/gitea.dev/gitea
|
||||
|
||||
FROM docker.io/library/alpine:3.24 AS gitea
|
||||
FROM docker.io/library/alpine:3.25 AS gitea
|
||||
|
||||
EXPOSE 22 3000
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
# Build frontend on the native platform to avoid QEMU-related issues with nodejs ecosystem
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.24 AS frontend-build
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.25 AS frontend-build
|
||||
RUN apk --no-cache add build-base git nodejs pnpm
|
||||
WORKDIR /src
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
@@ -9,7 +9,7 @@ COPY --exclude=.git/ . .
|
||||
RUN make frontend
|
||||
|
||||
# Cross-compile backend on the native platform
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.24 AS build-env
|
||||
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27-alpine3.25 AS build-env
|
||||
|
||||
ARG GITEA_VERSION
|
||||
ARG TAGS=""
|
||||
@@ -43,7 +43,7 @@ COPY docker/rootless /tmp/local
|
||||
RUN chmod 755 /tmp/local/usr/local/bin/* \
|
||||
/go/src/gitea.dev/gitea
|
||||
|
||||
FROM docker.io/library/alpine:3.24 AS gitea-rootless
|
||||
FROM docker.io/library/alpine:3.25 AS gitea-rootless
|
||||
|
||||
EXPOSE 2222 3000
|
||||
|
||||
|
||||
@@ -260,6 +260,7 @@ func runDump(ctx context.Context, cmd *cli.Command) error {
|
||||
excludes = append(excludes, setting.LFS.Storage.Path)
|
||||
excludes = append(excludes, setting.Attachment.Storage.Path)
|
||||
excludes = append(excludes, setting.Packages.Storage.Path)
|
||||
excludes = append(excludes, setting.RepoArchive.Storage.Path)
|
||||
excludes = append(excludes, setting.Log.RootPath)
|
||||
if err := dumper.AddRecursiveExclude("data", setting.AppDataPath, excludes); err != nil {
|
||||
fatal("Failed to include data directory: %v", err)
|
||||
|
||||
@@ -36,7 +36,7 @@ func newMigrateStorageCommand() *cli.Command {
|
||||
Name: "type",
|
||||
Aliases: []string{"t"},
|
||||
Value: "",
|
||||
Usage: "Type of stored files to copy. Allowed types: 'attachments', 'lfs', 'avatars', 'repo-avatars', 'packages', 'actions-log', 'actions-artifacts'",
|
||||
Usage: "Type of stored files to copy. Allowed types: 'attachments', 'lfs', 'avatars', 'repo-avatars', 'repo-archivers', 'packages', 'actions-log', 'actions-artifacts'",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "storage",
|
||||
@@ -173,6 +173,14 @@ func migrateRepoAvatars(ctx context.Context, dstStorage storage.ObjectStorage) e
|
||||
})
|
||||
}
|
||||
|
||||
func migrateRepoArchivers(ctx context.Context, dstStorage storage.ObjectStorage) error {
|
||||
return db.Iterate(ctx, nil, func(ctx context.Context, archiver *repo_model.RepoArchiver) error {
|
||||
p := archiver.RelativePath()
|
||||
_, err := storage.Copy(dstStorage, p, storage.RepoArchives, p)
|
||||
return err
|
||||
})
|
||||
}
|
||||
|
||||
func migratePackages(ctx context.Context, dstStorage storage.ObjectStorage) error {
|
||||
return db.Iterate(ctx, nil, func(ctx context.Context, pb *packages_model.PackageBlob) error {
|
||||
p := packages_module.KeyToRelativePath(packages_module.BlobHash256Key(pb.HashSHA256))
|
||||
@@ -296,6 +304,7 @@ func runMigrateStorage(ctx context.Context, cmd *cli.Command) error {
|
||||
"lfs": migrateLFS,
|
||||
"avatars": migrateAvatars,
|
||||
"repo-avatars": migrateRepoAvatars,
|
||||
"repo-archivers": migrateRepoArchivers,
|
||||
"packages": migratePackages,
|
||||
"actions-log": migrateActionsLog,
|
||||
"actions-artifacts": migrateActionsArtifacts,
|
||||
|
||||
@@ -2180,6 +2180,22 @@ LEVEL = Info
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Clean up old repository archives
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;[cron.archive_cleanup]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Whether to enable the job
|
||||
;ENABLED = true
|
||||
;; Whether to always run at least once at start up time (if ENABLED)
|
||||
;RUN_AT_START = true
|
||||
;; Whether to emit notice on successful execution too
|
||||
;NOTICE_ON_SUCCESS = false
|
||||
;; Time interval for job to run
|
||||
;SCHEDULE = @midnight
|
||||
;; Archives created more than OLDER_THAN ago are subject to deletion
|
||||
;OLDER_THAN = 24h
|
||||
|
||||
;; Enforce merge queue check timeouts and minimum group wait times
|
||||
;[cron.check_merge_queues]
|
||||
;ENABLED = true
|
||||
@@ -2393,6 +2409,18 @@ LEVEL = Info
|
||||
;SCHEDULE = @annually
|
||||
;OLDER_THAN = 168h
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Delete all repository archives
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;[cron.delete_repo_archives]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;ENABLED = false
|
||||
;RUN_AT_START = false
|
||||
;NOTICE_ON_SUCCESS = false
|
||||
;SCHEDULE = @annually;
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Garbage collect all repositories
|
||||
@@ -2895,6 +2923,31 @@ LEVEL = Info
|
||||
;; storage type
|
||||
;STORAGE_TYPE = local
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; repo-archive storage will override storage
|
||||
;;
|
||||
;[repo-archive]
|
||||
;STORAGE_TYPE = local
|
||||
;;
|
||||
;; Where your lfs files reside, default is data/lfs.
|
||||
;PATH = data/repo-archive
|
||||
;;
|
||||
;; override the S3 base path if storage type is s3
|
||||
;S3_BASE_PATH = repo-archive/
|
||||
;; override the azure blob base path if storage type is azureblob
|
||||
;AZURE_BLOB_BASE_PATH = repo-archive/
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; settings for repository archives, will override storage setting
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;[storage.repo-archive]
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; storage type
|
||||
;STORAGE_TYPE = local
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; lfs storage will override storage
|
||||
|
||||
@@ -452,7 +452,6 @@ func prepareMigrationTasks() []*migration {
|
||||
newMigration(373, "Repair Debian and RPM signing keys rejected by Sequoia", v29.RepairPackageSigningKeys),
|
||||
newMigration(374, "Add pull_merge_queue_entry table", v29.AddPullMergeQueueEntryTable),
|
||||
newMigration(375, "Update OwnerID as zero for repository level runner tokens", v29.UpdateOwnerIDOfRepoLevelRunnerTokens),
|
||||
newMigration(376, "Drop repo_archiver table", v29.DropRepoArchiverTable),
|
||||
}
|
||||
return preparedMigrations
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright 2026 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package v29
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"gitea.dev/modelmigration/base"
|
||||
)
|
||||
|
||||
func DropRepoArchiverTable(_ context.Context, x base.EngineMigration) error {
|
||||
return x.DropTables("repo_archiver")
|
||||
}
|
||||
@@ -344,12 +344,12 @@ func UpdateRunner(ctx context.Context, r *ActionRunner, cols ...string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func SetRunnerDisabled(ctx context.Context, runner *ActionRunner, isDisabled bool) (changed bool, err error) {
|
||||
func SetRunnerDisabled(ctx context.Context, runner *ActionRunner, isDisabled bool) error {
|
||||
if runner.IsDisabled == isDisabled {
|
||||
return false, nil
|
||||
return nil
|
||||
}
|
||||
|
||||
return true, db.WithTx(ctx, func(ctx context.Context) error {
|
||||
return db.WithTx(ctx, func(ctx context.Context) error {
|
||||
runner.IsDisabled = isDisabled
|
||||
if err := UpdateRunner(ctx, runner, "is_disabled"); err != nil {
|
||||
return err
|
||||
|
||||
@@ -65,7 +65,7 @@ func verifySign(s *packet.Signature, h hash.Hash, k *GPGKey) error {
|
||||
|
||||
func hashAndVerify(sig *packet.Signature, payload string, k *GPGKey) (*GPGKey, error) {
|
||||
// Generating hash of commit
|
||||
hash, err := populateHash(sig, []byte(payload))
|
||||
hash, err := populateHash(sig.Hash, []byte(payload))
|
||||
if err != nil { // Skipping as failed to generate hash
|
||||
log.Error("PopulateHash: %v", err)
|
||||
return nil, err
|
||||
|
||||
@@ -5,6 +5,7 @@ package asymkey
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"fmt"
|
||||
@@ -99,11 +100,8 @@ func getExpiryTime(e *openpgp.Entity) time.Time {
|
||||
return expiry
|
||||
}
|
||||
|
||||
func populateHash(sig *packet.Signature, msg []byte) (hash.Hash, error) {
|
||||
h, err := sig.PrepareVerify()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
func populateHash(hashFunc crypto.Hash, msg []byte) (hash.Hash, error) {
|
||||
h := hashFunc.New()
|
||||
if _, err := h.Write(msg); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
package asymkey
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -149,9 +148,9 @@ Unknown GPG key with good email
|
||||
assert.NoError(t, err, "Could not parse a valid GPG armored signature", testBadSigArmor)
|
||||
|
||||
// Generating hash of commit
|
||||
goodHash, err := populateHash(goodSig, []byte(testGoodPayload))
|
||||
goodHash, err := populateHash(goodSig.Hash, []byte(testGoodPayload))
|
||||
assert.NoError(t, err, "Could not generate a valid hash of payload", testGoodPayload)
|
||||
badHash, err := populateHash(badSig, []byte(testBadPayload))
|
||||
badHash, err := populateHash(badSig.Hash, []byte(testBadPayload))
|
||||
assert.NoError(t, err, "Could not generate a valid hash of payload", testBadPayload)
|
||||
|
||||
// Verify
|
||||
@@ -161,18 +160,6 @@ Unknown GPG key with good email
|
||||
assert.Error(t, err, "Validate a bad signature")
|
||||
err = verifySign(goodSig, goodHash, cannotsignkey)
|
||||
assert.Error(t, err, "Validate a bad signature with a kay that can not sign")
|
||||
|
||||
v6Entity, err := openpgp.NewEntity("v6", "", "v6@example.com", &packet.Config{V6Keys: true, Algorithm: packet.PubKeyAlgoMldsa65Ed25519})
|
||||
require.NoError(t, err)
|
||||
var v6SigArmor strings.Builder
|
||||
require.NoError(t, openpgp.ArmoredDetachSign(&v6SigArmor, v6Entity, strings.NewReader(testGoodPayload), nil))
|
||||
v6Sig, err := ExtractSignature(v6SigArmor.String())
|
||||
require.NoError(t, err)
|
||||
v6Content, err := Base64EncPubKey(v6Entity.PrimaryKey)
|
||||
require.NoError(t, err)
|
||||
v6Hash, err := populateHash(v6Sig, []byte(testGoodPayload))
|
||||
require.NoError(t, err)
|
||||
assert.NoError(t, verifySign(v6Sig, v6Hash, &GPGKey{Content: v6Content, CanSign: true}))
|
||||
}
|
||||
|
||||
func TestCheckGPGUserEmail(t *testing.T) {
|
||||
|
||||
@@ -111,10 +111,7 @@ var (
|
||||
UserWebhookUpdate = define("user:webhook:update", "Updated webhook {webhook} of user {scope}.")
|
||||
UserWebhookRemove = define("user:webhook:remove", "Removed webhook {webhook} of user {scope}.")
|
||||
UserRunnerToken = define("user:runner:token", "Issued Actions runner registration token for user {scope}.")
|
||||
UserRunnerRegister = define("user:runner:register", "Registered Actions runner {runner} for user {scope}.")
|
||||
UserRunnerUpdate = define("user:runner:update", "Updated description of Actions runner {runner} of user {scope}.")
|
||||
UserRunnerEnable = define("user:runner:enable", "Enabled Actions runner {runner} of user {scope}.")
|
||||
UserRunnerDisable = define("user:runner:disable", "Disabled Actions runner {runner} of user {scope}.")
|
||||
UserRunnerUpdate = define("user:runner:update", "Updated Actions runner {runner} of user {scope}.")
|
||||
UserRunnerRemove = define("user:runner:remove", "Removed Actions runner {runner} from user {scope}.")
|
||||
UserVariableAdd = define("user:variable:add", "Added variable {variable} to user {scope}.")
|
||||
UserVariableUpdate = define("user:variable:update", "Updated variable {variable} of user {scope}.")
|
||||
@@ -144,10 +141,7 @@ var (
|
||||
OrganizationWebhookRemove = define("organization:webhook:remove", "Removed webhook {webhook} of organization {scope}.")
|
||||
OrganizationTeamAccess = define("organization:teamaccess:update", "Changed whether repository admins of organization {scope} can change team access to {repo_admin_change_team_access}.")
|
||||
OrganizationRunnerToken = define("organization:runner:token", "Issued Actions runner registration token for organization {scope}.")
|
||||
OrganizationRunnerRegister = define("organization:runner:register", "Registered Actions runner {runner} for organization {scope}.")
|
||||
OrganizationRunnerUpdate = define("organization:runner:update", "Updated description of Actions runner {runner} of organization {scope}.")
|
||||
OrganizationRunnerEnable = define("organization:runner:enable", "Enabled Actions runner {runner} of organization {scope}.")
|
||||
OrganizationRunnerDisable = define("organization:runner:disable", "Disabled Actions runner {runner} of organization {scope}.")
|
||||
OrganizationRunnerUpdate = define("organization:runner:update", "Updated Actions runner {runner} of organization {scope}.")
|
||||
OrganizationRunnerRemove = define("organization:runner:remove", "Removed Actions runner {runner} from organization {scope}.")
|
||||
OrganizationVariableAdd = define("organization:variable:add", "Added variable {variable} to organization {scope}.")
|
||||
OrganizationVariableUpdate = define("organization:variable:update", "Updated variable {variable} of organization {scope}.")
|
||||
@@ -193,10 +187,7 @@ var (
|
||||
RepositorySecretUpdate = define("repository:secret:update", "Updated secret {secret} of repository {scope}.")
|
||||
RepositorySecretRemove = define("repository:secret:remove", "Removed secret {secret} from repository {scope}.")
|
||||
RepositoryRunnerToken = define("repository:runner:token", "Issued Actions runner registration token for repository {scope}.")
|
||||
RepositoryRunnerRegister = define("repository:runner:register", "Registered Actions runner {runner} for repository {scope}.")
|
||||
RepositoryRunnerUpdate = define("repository:runner:update", "Updated description of Actions runner {runner} of repository {scope}.")
|
||||
RepositoryRunnerEnable = define("repository:runner:enable", "Enabled Actions runner {runner} of repository {scope}.")
|
||||
RepositoryRunnerDisable = define("repository:runner:disable", "Disabled Actions runner {runner} of repository {scope}.")
|
||||
RepositoryRunnerUpdate = define("repository:runner:update", "Updated Actions runner {runner} of repository {scope}.")
|
||||
RepositoryRunnerRemove = define("repository:runner:remove", "Removed Actions runner {runner} from repository {scope}.")
|
||||
RepositoryVariableAdd = define("repository:variable:add", "Added variable {variable} to repository {scope}.")
|
||||
RepositoryVariableUpdate = define("repository:variable:update", "Updated variable {variable} of repository {scope}.")
|
||||
@@ -249,10 +240,7 @@ var (
|
||||
SystemOAuth2ApplicationRemove = define("system:oauth2application:remove", "Removed instance-wide OAuth2 application {oauth2_application}.")
|
||||
SystemConfigUpdate = define("system:config:update", "Changed system setting {key}.")
|
||||
SystemRunnerToken = define("system:runner:token", "Issued instance-wide Actions runner registration token.")
|
||||
SystemRunnerRegister = define("system:runner:register", "Registered instance-wide Actions runner {runner}.")
|
||||
SystemRunnerUpdate = define("system:runner:update", "Updated description of instance-wide Actions runner {runner}.")
|
||||
SystemRunnerEnable = define("system:runner:enable", "Enabled instance-wide Actions runner {runner}.")
|
||||
SystemRunnerDisable = define("system:runner:disable", "Disabled instance-wide Actions runner {runner}.")
|
||||
SystemRunnerUpdate = define("system:runner:update", "Updated instance-wide Actions runner {runner}.")
|
||||
SystemRunnerRemove = define("system:runner:remove", "Removed instance-wide Actions runner {runner}.")
|
||||
SystemVariableAdd = define("system:variable:add", "Added instance-wide variable {variable}.")
|
||||
SystemVariableUpdate = define("system:variable:update", "Updated instance-wide variable {variable}.")
|
||||
|
||||
3
models/fixtures/repo_archiver.yml
Normal file
3
models/fixtures/repo_archiver.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
[] # empty
|
||||
|
||||
# DO NOT add more test data in the fixtures, test case should prepare their own test data separately and clearly
|
||||
@@ -5,10 +5,25 @@ package repo
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.dev/models/db"
|
||||
"gitea.dev/modules/timeutil"
|
||||
"gitea.dev/modules/util"
|
||||
|
||||
"xorm.io/builder"
|
||||
)
|
||||
|
||||
// ArchiverStatus represents repo archive status
|
||||
type ArchiverStatus int
|
||||
|
||||
// enumerate all repo archive statuses
|
||||
const (
|
||||
ArchiverGenerating = iota // the archiver is generating
|
||||
ArchiverReady // it's ready
|
||||
)
|
||||
|
||||
// ArchiveType archive types
|
||||
@@ -46,6 +61,97 @@ func SplitArchiveNameType(s string) (string, ArchiveType) {
|
||||
return s, ArchiveUnknown
|
||||
}
|
||||
|
||||
// RepoArchiver represents all archivers
|
||||
type RepoArchiver struct { //revive:disable-line:exported
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
RepoID int64 `xorm:"index unique(s)"`
|
||||
Type ArchiveType `xorm:"unique(s)"`
|
||||
Status ArchiverStatus
|
||||
CommitID string `xorm:"VARCHAR(64) unique(s)"`
|
||||
CreatedUnix timeutil.TimeStamp `xorm:"INDEX NOT NULL created"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
db.RegisterModel(new(RepoArchiver))
|
||||
}
|
||||
|
||||
// RelativePath returns the archive path relative to the archive storage root.
|
||||
func (archiver *RepoArchiver) RelativePath() string {
|
||||
return fmt.Sprintf("%d/%s/%s.%s", archiver.RepoID, archiver.CommitID[:2], archiver.CommitID, archiver.Type.String())
|
||||
}
|
||||
|
||||
// repoArchiverForRelativePath takes a relativePath created from RepoArchiver.RelativePath() and creates a shell repoArchiver struct representing it
|
||||
func repoArchiverForRelativePath(relativePath string) (*RepoArchiver, error) {
|
||||
parts := strings.SplitN(relativePath, "/", 3)
|
||||
if len(parts) != 3 {
|
||||
return nil, util.NewInvalidArgumentErrorf("invalid storage path: must have 3 parts")
|
||||
}
|
||||
repoID, err := strconv.ParseInt(parts[0], 10, 64)
|
||||
if err != nil {
|
||||
return nil, util.NewInvalidArgumentErrorf("invalid storage path: invalid repo id")
|
||||
}
|
||||
commitID, archiveType := SplitArchiveNameType(parts[2])
|
||||
if archiveType == ArchiveUnknown {
|
||||
return nil, util.NewInvalidArgumentErrorf("invalid storage path: invalid archive type")
|
||||
}
|
||||
return &RepoArchiver{RepoID: repoID, CommitID: commitID, Type: archiveType}, nil
|
||||
}
|
||||
|
||||
// GetRepoArchiver get an archiver
|
||||
func GetRepoArchiver(ctx context.Context, repoID int64, tp ArchiveType, commitID string) (*RepoArchiver, error) {
|
||||
var archiver RepoArchiver
|
||||
has, err := db.GetEngine(ctx).Where("repo_id=?", repoID).And("`type`=?", tp).And("commit_id=?", commitID).Get(&archiver)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if has {
|
||||
return &archiver, nil
|
||||
}
|
||||
return nil, nil //nolint:nilnil // return nil to indicate that the object does not exist
|
||||
}
|
||||
|
||||
// ExistsRepoArchiverWithStoragePath checks if there is a RepoArchiver for a given storage path
|
||||
func ExistsRepoArchiverWithStoragePath(ctx context.Context, storagePath string) (bool, error) {
|
||||
// We need to invert the path provided func (archiver *RepoArchiver) RelativePath() above
|
||||
archiver, err := repoArchiverForRelativePath(storagePath)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
return db.GetEngine(ctx).Exist(archiver)
|
||||
}
|
||||
|
||||
// UpdateRepoArchiverStatus updates archiver's status
|
||||
func UpdateRepoArchiverStatus(ctx context.Context, archiver *RepoArchiver) error {
|
||||
_, err := db.GetEngine(ctx).ID(archiver.ID).Cols("status").Update(archiver)
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteAllRepoArchives deletes all repo archives records
|
||||
func DeleteAllRepoArchives(ctx context.Context) error {
|
||||
// 1=1 to enforce delete all data, otherwise it will delete nothing
|
||||
_, err := db.GetEngine(ctx).Where("1=1").Delete(new(RepoArchiver))
|
||||
return err
|
||||
}
|
||||
|
||||
// FindRepoArchiversOption represents an archiver options
|
||||
type FindRepoArchiversOption struct {
|
||||
db.ListOptions
|
||||
OlderThan time.Duration
|
||||
}
|
||||
|
||||
func (opts FindRepoArchiversOption) ToConds() builder.Cond {
|
||||
cond := builder.NewCond()
|
||||
if opts.OlderThan > 0 {
|
||||
cond = cond.And(builder.Lt{"created_unix": time.Now().Add(-opts.OlderThan).Unix()})
|
||||
}
|
||||
return cond
|
||||
}
|
||||
|
||||
func (opts FindRepoArchiversOption) ToOrders() string {
|
||||
return "created_unix ASC"
|
||||
}
|
||||
|
||||
// SetArchiveRepoState sets if a repo is archived
|
||||
func SetArchiveRepoState(ctx context.Context, repo *Repository, isArchived bool) (err error) {
|
||||
repo.IsArchived = isArchived
|
||||
|
||||
@@ -63,6 +63,12 @@ var (
|
||||
AllowForkWithoutMaximumLimit bool
|
||||
AllowForkIntoSameOwner bool
|
||||
|
||||
// StreamArchives makes Gitea stream git archive files to the client directly instead of creating an archive first.
|
||||
// Ideally all users should use this streaming method. However, at the moment we don't know whether there are
|
||||
// any users who still need the old behavior, so we introduce this option, intentionally not documenting it.
|
||||
// After one or two releases, if no one complains, we will remove this option and always use streaming.
|
||||
StreamArchives bool
|
||||
|
||||
// Repository editor settings
|
||||
Editor struct {
|
||||
LineWrapExtensions []string
|
||||
@@ -149,6 +155,7 @@ var (
|
||||
DefaultBranch: "main",
|
||||
DefaultObjectFormat: "sha1",
|
||||
AllowForkWithoutMaximumLimit: true,
|
||||
StreamArchives: true,
|
||||
|
||||
// Repository editor settings
|
||||
Editor: struct {
|
||||
@@ -386,4 +393,8 @@ func loadRepositoryFrom(rootCfg ConfigProvider) {
|
||||
i++
|
||||
}
|
||||
}
|
||||
|
||||
if err := loadRepoArchiveFrom(rootCfg); err != nil {
|
||||
log.Fatal("loadRepoArchiveFrom: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
25
modules/setting/repository_archive.go
Normal file
25
modules/setting/repository_archive.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// Copyright 2023 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package setting
|
||||
|
||||
import "fmt"
|
||||
|
||||
var RepoArchive = struct {
|
||||
Storage *Storage
|
||||
}{}
|
||||
|
||||
func loadRepoArchiveFrom(rootCfg ConfigProvider) (err error) {
|
||||
sec, _ := rootCfg.GetSection("repo-archive")
|
||||
if sec == nil {
|
||||
RepoArchive.Storage, err = getStorage(rootCfg, "repo-archive", "", nil)
|
||||
return err
|
||||
}
|
||||
|
||||
if err := sec.MapTo(&RepoArchive); err != nil {
|
||||
return fmt.Errorf("mapto repoarchive failed: %v", err)
|
||||
}
|
||||
|
||||
RepoArchive.Storage, err = getStorage(rootCfg, "repo-archive", "", sec)
|
||||
return err
|
||||
}
|
||||
89
modules/setting/repository_archive_test.go
Normal file
89
modules/setting/repository_archive_test.go
Normal file
@@ -0,0 +1,89 @@
|
||||
// Copyright 2023 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package setting
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func Test_getStorageInheritNameSectionTypeForRepoArchive(t *testing.T) {
|
||||
for _, tc := range []struct {
|
||||
ini, basePath string
|
||||
}{
|
||||
// packages storage inherits from storage if nothing configured
|
||||
{`
|
||||
[storage]
|
||||
STORAGE_TYPE = s3
|
||||
`, "repo-archive/"},
|
||||
// we can also configure packages storage directly
|
||||
{`
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = s3
|
||||
`, "repo-archive/"},
|
||||
// or we can indicate the storage type in the packages section
|
||||
{`
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = my_s3
|
||||
|
||||
[storage.my_s3]
|
||||
STORAGE_TYPE = s3
|
||||
`, "repo-archive/"},
|
||||
// or we can indicate the storage type and S3 base path in the packages section
|
||||
{`
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = my_s3
|
||||
S3_BASE_PATH = my_archive/
|
||||
|
||||
[storage.my_s3]
|
||||
STORAGE_TYPE = s3
|
||||
`, "my_archive/"},
|
||||
} {
|
||||
cfg, err := NewConfigProviderFromData(tc.ini)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
|
||||
assert.EqualValues(t, "s3", RepoArchive.Storage.Type)
|
||||
assert.Equal(t, tc.basePath, RepoArchive.Storage.S3Config.BasePath)
|
||||
}
|
||||
}
|
||||
|
||||
func Test_RepoArchiveStorage(t *testing.T) {
|
||||
for _, ini := range []string{
|
||||
`
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
[storage]
|
||||
STORAGE_TYPE = s3
|
||||
S3_ENDPOINT = s3.my-domain.net
|
||||
S3_BUCKET = gitea
|
||||
S3_LOCATION = homenet
|
||||
S3_USE_SSL = true
|
||||
S3_ACCESS_KEY_ID = correct_key
|
||||
S3_SECRET_ACCESS_KEY = correct_key
|
||||
`,
|
||||
`
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = s3
|
||||
[storage.s3]
|
||||
STORAGE_TYPE = s3
|
||||
S3_ENDPOINT = s3.my-domain.net
|
||||
S3_BUCKET = gitea
|
||||
S3_LOCATION = homenet
|
||||
S3_USE_SSL = true
|
||||
S3_ACCESS_KEY_ID = correct_key
|
||||
S3_SECRET_ACCESS_KEY = correct_key
|
||||
`,
|
||||
} {
|
||||
cfg, err := NewConfigProviderFromData(ini)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
storage := RepoArchive.Storage
|
||||
|
||||
assert.EqualValues(t, "s3", storage.Type)
|
||||
assert.Equal(t, "gitea", storage.S3Config.Bucket)
|
||||
}
|
||||
}
|
||||
@@ -73,10 +73,10 @@ STORAGE_TYPE = s3
|
||||
assert.Equal(t, "gitea", Packages.Storage.S3Config.Bucket)
|
||||
assert.Equal(t, "packages/", Packages.Storage.S3Config.BasePath)
|
||||
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.EqualValues(t, "s3", LFS.Storage.Type)
|
||||
assert.Equal(t, "gitea", LFS.Storage.S3Config.Bucket)
|
||||
assert.Equal(t, "lfs/", LFS.Storage.S3Config.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.EqualValues(t, "s3", RepoArchive.Storage.Type)
|
||||
assert.Equal(t, "gitea", RepoArchive.Storage.S3Config.Bucket)
|
||||
assert.Equal(t, "repo-archive/", RepoArchive.Storage.S3Config.BasePath)
|
||||
|
||||
assert.NoError(t, loadActionsFrom(cfg))
|
||||
assert.EqualValues(t, "s3", Actions.LogStorage.Type)
|
||||
@@ -111,10 +111,10 @@ STORAGE_TYPE = azureblob
|
||||
assert.Equal(t, "gitea", Packages.Storage.AzureBlobConfig.Container)
|
||||
assert.Equal(t, "packages/", Packages.Storage.AzureBlobConfig.BasePath)
|
||||
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.EqualValues(t, "azureblob", LFS.Storage.Type)
|
||||
assert.Equal(t, "gitea", LFS.Storage.AzureBlobConfig.Container)
|
||||
assert.Equal(t, "lfs/", LFS.Storage.AzureBlobConfig.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.EqualValues(t, "azureblob", RepoArchive.Storage.Type)
|
||||
assert.Equal(t, "gitea", RepoArchive.Storage.AzureBlobConfig.Container)
|
||||
assert.Equal(t, "repo-archive/", RepoArchive.Storage.AzureBlobConfig.BasePath)
|
||||
|
||||
assert.NoError(t, loadActionsFrom(cfg))
|
||||
assert.EqualValues(t, "azureblob", Actions.LogStorage.Type)
|
||||
@@ -158,28 +158,28 @@ func testLocalStoragePath(t *testing.T, appDataPath, iniStr string, cases []test
|
||||
|
||||
func Test_getStorageInheritStorageTypeLocal(t *testing.T) {
|
||||
for _, tc := range []struct {
|
||||
name, ini, basePath, lfsPath string
|
||||
name, ini, basePath, archivePath string
|
||||
}{
|
||||
{"Default", `
|
||||
[storage]
|
||||
STORAGE_TYPE = local
|
||||
`, "/appdata", "/appdata/lfs"},
|
||||
`, "/appdata", "/appdata/repo-archive"},
|
||||
{"Path", `
|
||||
[storage]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea
|
||||
`, "/data/gitea", "/data/gitea/lfs"},
|
||||
`, "/data/gitea", "/data/gitea/repo-archive"},
|
||||
{"RelativePath", `
|
||||
[storage]
|
||||
STORAGE_TYPE = local
|
||||
PATH = storages
|
||||
`, "/appdata/storages", "/appdata/storages/lfs"},
|
||||
`, "/appdata/storages", "/appdata/storages/repo-archive"},
|
||||
{"PathOverride", `
|
||||
[storage]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea
|
||||
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
PATH = /data/gitea/the-archives-dir
|
||||
`, "/data/gitea", "/data/gitea/the-archives-dir"},
|
||||
{"PathOverrideEmpty", `
|
||||
@@ -187,48 +187,49 @@ PATH = /data/gitea/the-archives-dir
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea
|
||||
|
||||
[lfs]
|
||||
`, "/data/gitea", "/data/gitea/lfs"},
|
||||
[repo-archive]
|
||||
`, "/data/gitea", "/data/gitea/repo-archive"},
|
||||
{"RelativePathOverride", `
|
||||
[storage]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea
|
||||
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
PATH = the-archives-dir
|
||||
`, "/data/gitea", "/data/gitea/the-archives-dir"},
|
||||
{"PathOverride3", `
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea/archives
|
||||
`, "/appdata", "/data/gitea/archives"},
|
||||
{"PathOverride3_5", `
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = local
|
||||
PATH = a-relative-path
|
||||
`, "/appdata", "/appdata/a-relative-path"},
|
||||
{"PathOverride4", `
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea/archives
|
||||
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
PATH = /tmp/gitea/archives
|
||||
`, "/appdata", "/tmp/gitea/archives"},
|
||||
{"PathOverride5", `
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = local
|
||||
PATH = /data/gitea/archives
|
||||
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
`, "/appdata", "/data/gitea/archives"},
|
||||
} {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
testLocalStoragePath(t, "/appdata", tc.ini, []testLocalStoragePathCase{
|
||||
{loadAttachmentFrom, &Attachment.Storage, tc.basePath + "/attachments"},
|
||||
{loadLFSFrom, &LFS.Storage, tc.basePath + "/lfs"},
|
||||
{loadActionsFrom, &Actions.ArtifactStorage, tc.basePath + "/actions_artifacts"},
|
||||
{loadPackagesFrom, &Packages.Storage, tc.basePath + "/packages"},
|
||||
{loadLFSFrom, &LFS.Storage, tc.lfsPath},
|
||||
{loadRepoArchiveFrom, &RepoArchive.Storage, tc.archivePath},
|
||||
{loadActionsFrom, &Actions.LogStorage, tc.basePath + "/actions_log"},
|
||||
{loadAvatarsFrom, &Avatar.Storage, tc.basePath + "/avatars"},
|
||||
{loadRepoAvatarFrom, &RepoAvatar.Storage, tc.basePath + "/repo-avatars"},
|
||||
@@ -239,45 +240,45 @@ PATH = /data/gitea/archives
|
||||
|
||||
func Test_getStorageInheritStorageTypeLocalPathOverride72(t *testing.T) {
|
||||
testLocalStoragePath(t, "/appdata", `
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = local
|
||||
PATH = archives
|
||||
`, []testLocalStoragePathCase{
|
||||
{loadLFSFrom, &LFS.Storage, "/appdata/archives"},
|
||||
{loadRepoArchiveFrom, &RepoArchive.Storage, "/appdata/archives"},
|
||||
})
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration20(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = my_storage
|
||||
PATH = archives
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
|
||||
assert.Error(t, loadLFSFrom(cfg))
|
||||
assert.Error(t, loadRepoArchiveFrom(cfg))
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration21(t *testing.T) {
|
||||
testLocalStoragePath(t, "/appdata", `
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
`, []testLocalStoragePathCase{
|
||||
{loadLFSFrom, &LFS.Storage, "/appdata/lfs"},
|
||||
{loadRepoArchiveFrom, &RepoArchive.Storage, "/appdata/repo-archive"},
|
||||
})
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration22(t *testing.T) {
|
||||
testLocalStoragePath(t, "/appdata", `
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
PATH = archives
|
||||
`, []testLocalStoragePathCase{
|
||||
{loadLFSFrom, &LFS.Storage, "/appdata/archives"},
|
||||
{loadRepoArchiveFrom, &RepoArchive.Storage, "/appdata/archives"},
|
||||
})
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration23(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = s3
|
||||
S3_ACCESS_KEY_ID = my_access_key
|
||||
S3_SECRET_ACCESS_KEY = my_secret_key
|
||||
@@ -287,15 +288,15 @@ S3_SECRET_ACCESS_KEY = my_secret_key
|
||||
_, err = getStorage(cfg, "", "", nil)
|
||||
assert.Error(t, err)
|
||||
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
cp := LFS.Storage.ToShadowCopy()
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
cp := RepoArchive.Storage.ToShadowCopy()
|
||||
assert.Equal(t, "******", cp.S3Config.AccessKeyID)
|
||||
assert.Equal(t, "******", cp.S3Config.SecretAccessKey)
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration24(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = my_archive
|
||||
|
||||
[storage.my_archive]
|
||||
@@ -303,13 +304,13 @@ STORAGE_TYPE = my_archive
|
||||
PATH = archives
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.Error(t, loadLFSFrom(cfg))
|
||||
assert.Error(t, loadRepoArchiveFrom(cfg))
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration25(t *testing.T) {
|
||||
for _, storageType := range []string{"my_archive", "local"} {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = ` + storageType + `
|
||||
|
||||
[storage.` + storageType + `]
|
||||
@@ -317,13 +318,13 @@ STORAGE_TYPE = unknown
|
||||
PATH = archives
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.Error(t, loadLFSFrom(cfg), storageType)
|
||||
assert.Error(t, loadRepoArchiveFrom(cfg), storageType)
|
||||
}
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration26(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = s3
|
||||
S3_ACCESS_KEY_ID = my_access_key
|
||||
S3_SECRET_ACCESS_KEY = my_secret_key
|
||||
@@ -331,25 +332,25 @@ S3_SECRET_ACCESS_KEY = my_secret_key
|
||||
S3_USE_SSL = abc
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
// assert.Error(t, loadLFSFrom(cfg))
|
||||
// assert.Error(t, loadRepoArchiveFrom(cfg))
|
||||
// FIXME: this should return error but now ini package's MapTo() doesn't check type
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration27(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = s3
|
||||
S3_ACCESS_KEY_ID = my_access_key
|
||||
S3_SECRET_ACCESS_KEY = my_secret_key
|
||||
S3_USE_SSL = true
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.Equal(t, "my_access_key", LFS.Storage.S3Config.AccessKeyID)
|
||||
assert.Equal(t, "my_secret_key", LFS.Storage.S3Config.SecretAccessKey)
|
||||
assert.True(t, LFS.Storage.S3Config.UseSSL)
|
||||
assert.Equal(t, "lfs/", LFS.Storage.S3Config.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.Equal(t, "my_access_key", RepoArchive.Storage.S3Config.AccessKeyID)
|
||||
assert.Equal(t, "my_secret_key", RepoArchive.Storage.S3Config.SecretAccessKey)
|
||||
assert.True(t, RepoArchive.Storage.S3Config.UseSSL)
|
||||
assert.Equal(t, "repo-archive/", RepoArchive.Storage.S3Config.BasePath)
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration28(t *testing.T) {
|
||||
@@ -362,11 +363,11 @@ S3_USE_SSL = true
|
||||
S3_BASE_PATH = /prefix
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.Equal(t, "my_access_key", LFS.Storage.S3Config.AccessKeyID)
|
||||
assert.Equal(t, "my_secret_key", LFS.Storage.S3Config.SecretAccessKey)
|
||||
assert.True(t, LFS.Storage.S3Config.UseSSL)
|
||||
assert.Equal(t, "/prefix/lfs/", LFS.Storage.S3Config.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.Equal(t, "my_access_key", RepoArchive.Storage.S3Config.AccessKeyID)
|
||||
assert.Equal(t, "my_secret_key", RepoArchive.Storage.S3Config.SecretAccessKey)
|
||||
assert.True(t, RepoArchive.Storage.S3Config.UseSSL)
|
||||
assert.Equal(t, "/prefix/repo-archive/", RepoArchive.Storage.S3Config.BasePath)
|
||||
|
||||
cfg, err = NewConfigProviderFromData(`
|
||||
[storage]
|
||||
@@ -376,10 +377,10 @@ S3_USE_SSL = true
|
||||
S3_BASE_PATH = /prefix
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.Equal(t, "127.0.0.1", LFS.Storage.S3Config.IamEndpoint)
|
||||
assert.True(t, LFS.Storage.S3Config.UseSSL)
|
||||
assert.Equal(t, "/prefix/lfs/", LFS.Storage.S3Config.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.Equal(t, "127.0.0.1", RepoArchive.Storage.S3Config.IamEndpoint)
|
||||
assert.True(t, RepoArchive.Storage.S3Config.UseSSL)
|
||||
assert.Equal(t, "/prefix/repo-archive/", RepoArchive.Storage.S3Config.BasePath)
|
||||
|
||||
cfg, err = NewConfigProviderFromData(`
|
||||
[storage]
|
||||
@@ -420,29 +421,29 @@ S3_BASE_PATH = /lfs
|
||||
|
||||
func Test_getStorageConfiguration29(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[lfs]
|
||||
[repo-archive]
|
||||
STORAGE_TYPE = azureblob
|
||||
AZURE_BLOB_ACCOUNT_NAME = my_account_name
|
||||
AZURE_BLOB_ACCOUNT_KEY = my_account_key
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
// assert.Error(t, loadLFSFrom(cfg))
|
||||
// assert.Error(t, loadRepoArchiveFrom(cfg))
|
||||
// FIXME: this should return error but now ini package's MapTo() doesn't check type
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration30(t *testing.T) {
|
||||
cfg, err := NewConfigProviderFromData(`
|
||||
[storage.lfs]
|
||||
[storage.repo-archive]
|
||||
STORAGE_TYPE = azureblob
|
||||
AZURE_BLOB_ACCOUNT_NAME = my_account_name
|
||||
AZURE_BLOB_ACCOUNT_KEY = my_account_key
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.Equal(t, "my_account_name", LFS.Storage.AzureBlobConfig.AccountName)
|
||||
assert.Equal(t, "my_account_key", LFS.Storage.AzureBlobConfig.AccountKey)
|
||||
assert.Equal(t, "lfs/", LFS.Storage.AzureBlobConfig.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.Equal(t, "my_account_name", RepoArchive.Storage.AzureBlobConfig.AccountName)
|
||||
assert.Equal(t, "my_account_key", RepoArchive.Storage.AzureBlobConfig.AccountKey)
|
||||
assert.Equal(t, "repo-archive/", RepoArchive.Storage.AzureBlobConfig.BasePath)
|
||||
}
|
||||
|
||||
func Test_getStorageConfiguration31(t *testing.T) {
|
||||
@@ -454,10 +455,10 @@ AZURE_BLOB_ACCOUNT_KEY = my_account_key
|
||||
AZURE_BLOB_BASE_PATH = /prefix
|
||||
`)
|
||||
assert.NoError(t, err)
|
||||
assert.NoError(t, loadLFSFrom(cfg))
|
||||
assert.Equal(t, "my_account_name", LFS.Storage.AzureBlobConfig.AccountName)
|
||||
assert.Equal(t, "my_account_key", LFS.Storage.AzureBlobConfig.AccountKey)
|
||||
assert.Equal(t, "/prefix/lfs/", LFS.Storage.AzureBlobConfig.BasePath)
|
||||
assert.NoError(t, loadRepoArchiveFrom(cfg))
|
||||
assert.Equal(t, "my_account_name", RepoArchive.Storage.AzureBlobConfig.AccountName)
|
||||
assert.Equal(t, "my_account_key", RepoArchive.Storage.AzureBlobConfig.AccountKey)
|
||||
assert.Equal(t, "/prefix/repo-archive/", RepoArchive.Storage.AzureBlobConfig.BasePath)
|
||||
|
||||
cfg, err = NewConfigProviderFromData(`
|
||||
[storage]
|
||||
|
||||
@@ -184,6 +184,9 @@ var (
|
||||
// RepoAvatars represents repository avatars storage
|
||||
RepoAvatars ObjectStorage = uninitializedStorage
|
||||
|
||||
// RepoArchives represents repository archives storage
|
||||
RepoArchives ObjectStorage = uninitializedStorage
|
||||
|
||||
// Packages represents packages storage
|
||||
Packages ObjectStorage = uninitializedStorage
|
||||
|
||||
@@ -200,6 +203,7 @@ func Init() error {
|
||||
initAvatars,
|
||||
initRepoAvatars,
|
||||
initLFS,
|
||||
initRepoArchives,
|
||||
initPackages,
|
||||
initActions,
|
||||
} {
|
||||
@@ -255,6 +259,12 @@ func initRepoAvatars() (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
func initRepoArchives() (err error) {
|
||||
log.Info("Initialising Repository Archive storage with type: %s", setting.RepoArchive.Storage.Type)
|
||||
RepoArchives, err = NewStorage(setting.RepoArchive.Storage.Type, setting.RepoArchive.Storage)
|
||||
return err
|
||||
}
|
||||
|
||||
func initPackages() (err error) {
|
||||
if !setting.Packages.Enabled {
|
||||
Packages = discardStorage("Packages isn't enabled")
|
||||
|
||||
@@ -1464,6 +1464,9 @@
|
||||
"repo.pulls.merged_info_text": "Větev %s může být nyní odstraněna.",
|
||||
"repo.pulls.is_closed": "Pull request byl uzavřen.",
|
||||
"repo.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í pull requestu.",
|
||||
"repo.pulls.still_in_progress": "Stále probíhá?",
|
||||
"repo.pulls.add_prefix": "Přidat prefix <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Odstranit prefix <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Tento pull request je rozbitý kvůli chybějícím informacím o rozštěpení.",
|
||||
"repo.pulls.is_ancestor": "Tato větev je již součástí cílové větve. Není co sloučit.",
|
||||
"repo.pulls.is_empty": "Změny na této větvi jsou již na cílové větvi. Toto bude prázdný commit.",
|
||||
@@ -1481,6 +1484,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d čekající posouzení",
|
||||
"repo.pulls.no_merge_desc": "Tento pull request nemůže být sloučen, protože všechny možnosti repozitáře na sloučení jsou zakázány.",
|
||||
"repo.pulls.no_merge_helper": "Povolte možnosti sloučení v nastavení repozitáře nebo proveďte sloučení pull requestu ručně.",
|
||||
"repo.pulls.no_merge_wip": "Pull request nemůže být sloučen protože je označen jako nedokončený.",
|
||||
"repo.pulls.no_merge_access": "Nemáte oprávnění sloučit tento pull request.",
|
||||
"repo.pulls.merge_pull_request": "Vytvořit slučovací commit",
|
||||
"repo.pulls.squash_merge_pull_request": "Vytvořit squash commit",
|
||||
@@ -2354,6 +2358,7 @@
|
||||
"admin.dashboard.cron.error": "Chyba v naplánované úloze: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Naplánovaná úloha: %[1]s skončila",
|
||||
"admin.dashboard.delete_inactive_accounts": "Smazat všechny neaktivované účty",
|
||||
"admin.dashboard.delete_repo_archives": "Odstranit všechny archivy repozitáře (ZIP, TAR.GZ, atd.)",
|
||||
"admin.dashboard.delete_missing_repos": "Smazat všechny repozitáře, které nemají Git soubory",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Odstranit vygenerované avatary repozitářů",
|
||||
"admin.dashboard.sync_repo_branches": "Synchronizovat chybějící větve z git dat do databází",
|
||||
@@ -2361,6 +2366,7 @@
|
||||
"admin.dashboard.update_mirrors": "Aktualizovat zrcadla",
|
||||
"admin.dashboard.repo_health_check": "Kontrola stavu všech repozitářů",
|
||||
"admin.dashboard.check_repo_stats": "Zkontrolovat všechny statistiky repositáře",
|
||||
"admin.dashboard.archive_cleanup": "Smazat staré archivy repozitářů",
|
||||
"admin.dashboard.update_migration_poster_id": "Aktualizovat ID autora migrace",
|
||||
"admin.dashboard.reinit_missing_repos": "Znovu inicializovat všechny chybějící repozitáře, pro které existují záznamy",
|
||||
"admin.dashboard.sync_external_users": "Synchronizovat externí uživatelská data",
|
||||
@@ -2624,6 +2630,7 @@
|
||||
"admin.config.lfs_root_path": "Kořenový adresář LFS",
|
||||
"admin.config.log_file_root_path": "Adresář logů",
|
||||
"admin.config.script_type": "Typ skriptu",
|
||||
"admin.config.reverse_auth_user": "Uživatel obráceného ověření",
|
||||
"admin.config.ssh_config": "Nastavení SSH",
|
||||
"admin.config.ssh_enabled": "Zapnutý",
|
||||
"admin.config.ssh_start_builtin_server": "Použít vestavěný server",
|
||||
|
||||
@@ -1760,6 +1760,7 @@
|
||||
"repo.pulls.title_desc": "möchte %[1]d Commits von <code>%[2]s</code> nach <code id=\"branch_target\">%[3]s</code> mergen",
|
||||
"repo.pulls.merged_title_desc": "hat %[1]d Commits von <code>%[2]s</code> nach <code>%[3]s</code> %[4]s zusammengeführt",
|
||||
"repo.pulls.change_target_branch_at": "hat den Zielbranch von <b>%s</b> nach <b>%s</b> %s geändert",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "Markiere den Pull Request als in Arbeit befindliche %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "Markierte den Pull-Request als bereit zur Überprüfung %s",
|
||||
"repo.pulls.tab_conversation": "Diskussion",
|
||||
"repo.pulls.tab_commits": "Commits",
|
||||
@@ -1772,6 +1773,9 @@
|
||||
"repo.pulls.merged_info_text": "Der Branch %s kann jetzt gelöscht werden.",
|
||||
"repo.pulls.is_closed": "Der Pull-Request wurde geschlossen.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Beginne den Titel mit <strong>%s</strong></a> um zu verhindern, dass der Pull Request versehentlich gemergt wird.",
|
||||
"repo.pulls.still_in_progress": "Noch in Bearbeitung?",
|
||||
"repo.pulls.add_prefix": "<strong>%s</strong> Präfix hinzufügen",
|
||||
"repo.pulls.remove_prefix": "<strong>%s</strong> Präfix entfernen",
|
||||
"repo.pulls.data_broken": "Dieser Pull-Requests ist kaputt, da Fork-Informationen gelöscht wurden.",
|
||||
"repo.pulls.is_ancestor": "Dieser Branch ist bereits im Zielbranch enthalten. Es gibt nichts zu mergen.",
|
||||
"repo.pulls.is_empty": "Die Änderungen an diesem Branch sind bereits auf dem Zielbranch. Dies wird ein leerer Commit sein.",
|
||||
@@ -1790,6 +1794,7 @@
|
||||
"repo.pulls.wrong_commit_id": "Commit-ID muss eine Commit-ID im Ziel Branch sein",
|
||||
"repo.pulls.no_merge_desc": "Dieser Pull-Request kann nicht gemerged werden, da keine Mergeoptionen aktiviert sind.",
|
||||
"repo.pulls.no_merge_helper": "Aktiviere Mergeoptionen in den Repositoryeinstellungen oder merge den Pull-Request manuell.",
|
||||
"repo.pulls.no_merge_wip": "Dieser Pull Request kann nicht gemergt werden, da er als Work In Progress gekennzeichnet ist.",
|
||||
"repo.pulls.no_merge_not_ready": "Dieser Pull-Request kann nicht gemergt werden, überprüfe den Reviewstatus und die Statusprüfungen.",
|
||||
"repo.pulls.no_merge_access": "Du bist nicht berechtigt, diesen Pull-Request zu mergen.",
|
||||
"repo.pulls.merge_pull_request": "Merge Commit erstellen",
|
||||
@@ -2900,6 +2905,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s ist beendet",
|
||||
"admin.dashboard.delete_inactive_accounts": "Alle nicht aktivierten Konten löschen",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Aufgabe zum Löschen aller nicht aktivierten Konten gestartet",
|
||||
"admin.dashboard.delete_repo_archives": "Lösche alle Repository-Archive (ZIP, TAR.GZ, …)",
|
||||
"admin.dashboard.delete_repo_archives.started": "Aufgabe zum Löschen aller Projektarchiven gestartet",
|
||||
"admin.dashboard.delete_missing_repos": "Alle Repository-Datensätze mit verloren gegangenen Git-Dateien löschen",
|
||||
"admin.dashboard.delete_missing_repos.started": "Aufgabe zum Löschen aller Repositories ohne Git-Dateien gestartet",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Generierte Repository-Avatare löschen",
|
||||
@@ -2908,6 +2915,7 @@
|
||||
"admin.dashboard.update_mirrors": "Mirrors aktualisieren",
|
||||
"admin.dashboard.repo_health_check": "Healthchecks für alle Repositories ausführen",
|
||||
"admin.dashboard.check_repo_stats": "Überprüfe alle Repository-Statistiken",
|
||||
"admin.dashboard.archive_cleanup": "Alte Repository-Archive löschen",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Gelöschte Branches bereinigen",
|
||||
"admin.dashboard.update_migration_poster_id": "Migration Poster-IDs updaten",
|
||||
"admin.dashboard.git_gc_repos": "Garbage Collection auf alle Repositories ausführen",
|
||||
@@ -3220,6 +3228,7 @@
|
||||
"admin.config.lfs_root_path": "LFS-Wurzelpfad",
|
||||
"admin.config.log_file_root_path": "Logdateipfad",
|
||||
"admin.config.script_type": "Skript-Typ",
|
||||
"admin.config.reverse_auth_user": "Nutzer bei Reverse-Authentifizierung",
|
||||
"admin.config.ssh_config": "SSH-Konfiguration",
|
||||
"admin.config.ssh_enabled": "Aktiviert",
|
||||
"admin.config.ssh_start_builtin_server": "Eingebauten Server verwenden",
|
||||
|
||||
@@ -1332,6 +1332,9 @@
|
||||
"repo.pulls.merged_info_text": "Ο κλάδος %s μπορεί τώρα να διαγραφεί.",
|
||||
"repo.pulls.is_closed": "Το pull request έχει κλείσει.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Ξεκινήστε τον τίτλο με <strong>%s</strong></a> για να αποτρέψετε την τυχαία συγχώνευση του pull request.",
|
||||
"repo.pulls.still_in_progress": "Ακόμα είναι σε εξέλιξη;",
|
||||
"repo.pulls.add_prefix": "Προσθήκη <strong>%s</strong> προθέματος",
|
||||
"repo.pulls.remove_prefix": "Αφαίρεση <strong>%s</strong> προθέματος",
|
||||
"repo.pulls.data_broken": "Αυτό το pull request είναι κατεστραμμένο λόγω των πληροφοριών του fork που λείπουν.",
|
||||
"repo.pulls.is_ancestor": "Αυτός ο κλάδος περιλαμβάνεται ήδη στον κλάδο προορισμού. Δεν υπάρχει τίποτα για συγχώνευση.",
|
||||
"repo.pulls.is_empty": "Οι αλλαγές σε αυτόν τον κλάδο είναι ήδη στον κλάδο προορισμού. Θα είναι μια κενή υποβολή.",
|
||||
@@ -1349,6 +1352,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d αναμονή αναθεωρήσεων",
|
||||
"repo.pulls.no_merge_desc": "Αυτό το pull request δεν μπορεί να συγχωνευθεί επειδή όλες οι επιλογές συγχώνευσης αποθετηρίων είναι απενεργοποιημένες.",
|
||||
"repo.pulls.no_merge_helper": "Ενεργοποιήστε τις επιλογές συγχώνευσης στις ρυθμίσεις αποθετηρίου ή συγχωνεύστε το pull request χειροκίνητα.",
|
||||
"repo.pulls.no_merge_wip": "Αυτό το pull request δεν μπορεί να συγχωνευθεί, επειδή έχει επισημανθεί ως μια εργασία σε εξέλιξη.",
|
||||
"repo.pulls.no_merge_access": "Δεν είστε εξουσιοδοτημένοι να συγχωνεύσετε αυτό το pull request.",
|
||||
"repo.pulls.merge_pull_request": "Δημιουργία υποβολής συγχώνευσης",
|
||||
"repo.pulls.squash_merge_pull_request": "Δημιουργία υποβολής squash",
|
||||
@@ -2125,12 +2129,14 @@
|
||||
"admin.dashboard.cron.error": "Σφάλμα στη Προγραμματισμένη Εργασία: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Προγραμματισμένη Εργασία: %[1]s τελείωσε",
|
||||
"admin.dashboard.delete_inactive_accounts": "Διαγραφή όλων των μη ενεργοποιημένων λογαριασμών",
|
||||
"admin.dashboard.delete_repo_archives": "Διαγραφή όλων των αρχείων λήψης του αποθετηρίου (ZIP, TAR.GZ, κλπ..)",
|
||||
"admin.dashboard.delete_missing_repos": "Διαγραφή όλων των αποθετηρίων που δεν έχουν τα αρχεία Git τους",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Διαγραφή δημιουργημένων εικόνων αποθετηρίων",
|
||||
"admin.dashboard.sync_repo_branches": "Συγχρονισμός κλάδων που λείπουν, από τα δεδομένα git στις βάσεις δεδομένων",
|
||||
"admin.dashboard.update_mirrors": "Ενημέρωση Ειδώλων",
|
||||
"admin.dashboard.repo_health_check": "Έλεγχος υγείας σε όλα τα αποθετήρια",
|
||||
"admin.dashboard.check_repo_stats": "Έλεγχος όλων των στατιστικών αποθετηρίων",
|
||||
"admin.dashboard.archive_cleanup": "Διαγραφή παλαιών αρχείων λήψης αποθετηρίων",
|
||||
"admin.dashboard.update_migration_poster_id": "Ενημέρωση των ID συντακτών στη μεταγκατάσταση",
|
||||
"admin.dashboard.reinit_missing_repos": "Επανεκκινήστε όλα τα αποθετήρια Git που λείπουν και για τα οποία υπάρχουν εγγραφές",
|
||||
"admin.dashboard.sync_external_users": "Συγχρονισμός δεδομένων εξωτερικών χρηστών",
|
||||
@@ -2370,6 +2376,7 @@
|
||||
"admin.config.lfs_root_path": "Ριζική Διαδρομή LFS",
|
||||
"admin.config.log_file_root_path": "Διαδρομή Καταγραφών",
|
||||
"admin.config.script_type": "Τύπος Σεναρίου",
|
||||
"admin.config.reverse_auth_user": "Χρήστης ΑντίστροφηςΠιστοποίησης",
|
||||
"admin.config.ssh_config": "Ρύθμιση SSH",
|
||||
"admin.config.ssh_enabled": "Ενεργοποιημένο",
|
||||
"admin.config.ssh_start_builtin_server": "Χρήση Ενσωματωμένου Διακομιστή",
|
||||
|
||||
@@ -3102,6 +3102,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s has finished",
|
||||
"admin.dashboard.delete_inactive_accounts": "Delete all unactivated accounts",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Task to delete all unactivated accounts started",
|
||||
"admin.dashboard.delete_repo_archives": "Delete all repositories' archives (ZIP, TAR.GZ, etc..)",
|
||||
"admin.dashboard.delete_repo_archives.started": "Task to delete all repository archives started",
|
||||
"admin.dashboard.delete_missing_repos": "Delete all repositories missing their Git files",
|
||||
"admin.dashboard.delete_missing_repos.started": "Task to delete all repositories missing their Git files started",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Delete generated repository avatars",
|
||||
@@ -3110,6 +3112,7 @@
|
||||
"admin.dashboard.update_mirrors": "Update Mirrors",
|
||||
"admin.dashboard.repo_health_check": "Health check all repositories",
|
||||
"admin.dashboard.check_repo_stats": "Check all repository statistics",
|
||||
"admin.dashboard.archive_cleanup": "Delete old repository archives",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Clean up deleted branches",
|
||||
"admin.dashboard.update_migration_poster_id": "Update migration poster IDs",
|
||||
"admin.dashboard.git_gc_repos": "Garbage-collect all repositories",
|
||||
@@ -3195,7 +3198,6 @@
|
||||
"admin.users.auth_source": "Authentication Source",
|
||||
"admin.users.local": "Local",
|
||||
"admin.users.auth_login_name": "Authentication Sign-In Name",
|
||||
"admin.users.email_helper": "Changing the email address replaces the current primary email address. The other email addresses of this user are kept.",
|
||||
"admin.users.password_helper": "Leave the password empty to keep it unchanged.",
|
||||
"admin.users.update_profile_success": "The user account has been updated.",
|
||||
"admin.users.edit_account": "Edit User Account",
|
||||
|
||||
@@ -1313,6 +1313,9 @@
|
||||
"repo.pulls.merged_info_text": "Ahora se puede eliminar la rama %s.",
|
||||
"repo.pulls.is_closed": "El pull request ha sido cerrado.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Comience el título con <strong>%s</strong></a> para prevenir que el pull request se fusione accidentalmente.",
|
||||
"repo.pulls.still_in_progress": "¿Aún en curso?",
|
||||
"repo.pulls.add_prefix": "Añadir prefijo <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Eliminar prefijo <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Este pull request está rota debido a que falta información del fork.",
|
||||
"repo.pulls.is_ancestor": "Esta rama ya está incluida en la rama de destino. No hay nada que fusionar.",
|
||||
"repo.pulls.is_empty": "Los cambios en esta rama ya están en la rama de destino. Esto será un commit vacío.",
|
||||
@@ -1330,6 +1333,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d esperando revisiónes",
|
||||
"repo.pulls.no_merge_desc": "Este pull request no se puede combinar porque todas las opciones de combinación del repositorio están deshabilitadas.",
|
||||
"repo.pulls.no_merge_helper": "Habilite las opciones de combinación en la configuración del repositorio o fusione el pull request manualmente.",
|
||||
"repo.pulls.no_merge_wip": "Este pull request no se puede combinar porque está marcada como un trabajo en progreso.",
|
||||
"repo.pulls.no_merge_access": "No está autorizado para fusionar de este pull request.",
|
||||
"repo.pulls.merge_pull_request": "Crear commit fusionado",
|
||||
"repo.pulls.squash_merge_pull_request": "Crear commit squash",
|
||||
@@ -2093,12 +2097,14 @@
|
||||
"admin.dashboard.cron.error": "Error en Cron: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s ha finalizado",
|
||||
"admin.dashboard.delete_inactive_accounts": "Eliminar todas las cuentas inactivas",
|
||||
"admin.dashboard.delete_repo_archives": "Eliminar todos los archivos del repositorio (ZIP, TAR.GZ, etc.)",
|
||||
"admin.dashboard.delete_missing_repos": "Eliminar todos los repositorios que faltan sus archivos Git",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Eliminar avatares generados del repositorio",
|
||||
"admin.dashboard.sync_repo_branches": "Sincronizar ramas perdidas de datos git a bases de datos",
|
||||
"admin.dashboard.update_mirrors": "Actualizar réplicas",
|
||||
"admin.dashboard.repo_health_check": "Chequear de estado de salud de todos los repositorios",
|
||||
"admin.dashboard.check_repo_stats": "Comprobar todas las estadísticas de todos los repositorios",
|
||||
"admin.dashboard.archive_cleanup": "Eliminar archivos antiguos de los repositorios",
|
||||
"admin.dashboard.update_migration_poster_id": "Actualizar ID de usuario en migraciones",
|
||||
"admin.dashboard.reinit_missing_repos": "Reiniciar todos los repositorios Git faltantes de los que existen registros",
|
||||
"admin.dashboard.sync_external_users": "Sincronizar datos de usuario externo",
|
||||
@@ -2336,6 +2342,7 @@
|
||||
"admin.config.lfs_root_path": "Ruta raíz de LFS",
|
||||
"admin.config.log_file_root_path": "Ruta de ficheros de registro",
|
||||
"admin.config.script_type": "Tipo de Script",
|
||||
"admin.config.reverse_auth_user": "Autenticación Inversa de Usuario",
|
||||
"admin.config.ssh_config": "Configuración SSH",
|
||||
"admin.config.ssh_enabled": "Habilitado",
|
||||
"admin.config.ssh_start_builtin_server": "Utilizar servidor integrado",
|
||||
|
||||
@@ -1016,6 +1016,9 @@
|
||||
"repo.pulls.manually_merged": "بصورت دستی ادغام شد",
|
||||
"repo.pulls.is_closed": "این تقاضای واکشی بسته شد.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\"> شروع شذع با عنوان <strong>%s</strong></a> برای جلو گیری کردن از تقاضای واکشی که موقع ادغام دچار تصادم میشود.",
|
||||
"repo.pulls.still_in_progress": "هنوز در حال انجام؟",
|
||||
"repo.pulls.add_prefix": "اضافه کردن پیشوند <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "حذف پیشوند <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "این تقاضای واکشی به دلیل از دست رفتن اطلاعات انشعاب با شکست مواجه شد.",
|
||||
"repo.pulls.can_auto_merge_desc": "این تقاضا واکشی می تواند به صورت خودکار ادغام شود.",
|
||||
"repo.pulls.cannot_auto_merge_helper": "به صورتی دستی ادغام کنید تا مشکل تداخل را حل نمایید.",
|
||||
@@ -1029,6 +1032,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d منتظر بازبینی",
|
||||
"repo.pulls.no_merge_desc": "این تقاضای واکشی قابل ادغام نیست لذا تمامی گزینه های ادغام مخزن غیر فعال هستند.",
|
||||
"repo.pulls.no_merge_helper": "گزینه های ادغام را در تنظیمات مخزن فعال کنید یا از تقاضای واکشی به صورت دستی ادغام نمایید.",
|
||||
"repo.pulls.no_merge_wip": "این تقاضای واکشی قابل ادغام نیست لذا اکنون به این مخزن درحال پردازش علامت گذاری شده است.",
|
||||
"repo.pulls.no_merge_access": "شما مجاز به ادغام این درخواست واکشی نیستید.",
|
||||
"repo.pulls.merge_pull_request": "ایجاد commit ادغام",
|
||||
"repo.pulls.squash_merge_pull_request": "ایجاد commit اسکواش",
|
||||
@@ -1648,11 +1652,13 @@
|
||||
"admin.dashboard.cron.error": "خطا در Cron: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s پایان یافته است",
|
||||
"admin.dashboard.delete_inactive_accounts": "حذف تمام حساب های کاربری غیرفعال",
|
||||
"admin.dashboard.delete_repo_archives": "حذف تمام انبار های آرشیو شده (ZIP, TAR.GZ, etc..)",
|
||||
"admin.dashboard.delete_missing_repos": "حذف تمامی مخازنی که پروندههای گیت آنها از بین رفته است",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "حذف آواتار هایی که برای مخزن تولید شده اند",
|
||||
"admin.dashboard.update_mirrors": "میرور ها بروزرسانی شود",
|
||||
"admin.dashboard.repo_health_check": "سلامت تمام انبار ها چک شود",
|
||||
"admin.dashboard.check_repo_stats": "تمام آمار انبارها چک شود",
|
||||
"admin.dashboard.archive_cleanup": "آرشیوهای انبار قدیمی را حذف کنید",
|
||||
"admin.dashboard.update_migration_poster_id": "شناسه های پوستر مهاجرت را به روز کنید",
|
||||
"admin.dashboard.reinit_missing_repos": "تمامی مخازنی که سوابقشان وجود دارند مجدداً گیت آنها مفقود شده است مجدداً مقدمات آنها فراهم شود",
|
||||
"admin.dashboard.sync_external_users": "همگام سازی اطلاعات کاربر خارجی",
|
||||
@@ -1859,6 +1865,7 @@
|
||||
"admin.config.lfs_root_path": "مسیر ریشه LFS",
|
||||
"admin.config.log_file_root_path": "مسیر گزارشها",
|
||||
"admin.config.script_type": "نوع اسکریپت",
|
||||
"admin.config.reverse_auth_user": "شیوه ی احرازهویت معکوس",
|
||||
"admin.config.ssh_config": "پیکربندی SSH",
|
||||
"admin.config.ssh_enabled": "فعال شده",
|
||||
"admin.config.ssh_start_builtin_server": "استفاده از ساخته سرور",
|
||||
|
||||
@@ -763,6 +763,8 @@
|
||||
"repo.pulls.tab_files": "Muuttuneet tiedostot",
|
||||
"repo.pulls.merged": "Yhdistetty",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Aloita otsikko sanalla <strong>%s</strong></a> estääksesi vetopyynnön yhdistämisen vahingossa.",
|
||||
"repo.pulls.add_prefix": "Lisää <strong>%s</strong> etuliite",
|
||||
"repo.pulls.remove_prefix": "Poista <strong>%s</strong> etuliite",
|
||||
"repo.pulls.can_auto_merge_desc": "Tämä pull-pyyntö voidaan yhdistää automaattisesti.",
|
||||
"repo.milestones.new": "Uusi merkkipaalu",
|
||||
"repo.milestones.closed": "Suljettu %s",
|
||||
@@ -1109,6 +1111,7 @@
|
||||
"admin.dashboard.operation_switch": "Vaihda",
|
||||
"admin.dashboard.operation_run": "Suorita",
|
||||
"admin.dashboard.delete_inactive_accounts": "Poista kaikki aktivoimattomat käyttäjät",
|
||||
"admin.dashboard.delete_repo_archives": "Poista kaikki repojen arkistot (ZIP, TAR.GZ, jne..)",
|
||||
"admin.dashboard.server_uptime": "Palvelimen Uptime",
|
||||
"admin.dashboard.current_goroutine": "Nykyiset Goroutinet",
|
||||
"admin.dashboard.current_memory_usage": "Nykyinen muistinkäyttö",
|
||||
@@ -1244,6 +1247,7 @@
|
||||
"admin.config.repo_root_path": "Repon juuren polku",
|
||||
"admin.config.log_file_root_path": "Lokin polku",
|
||||
"admin.config.script_type": "Komentosarjan tyyppi",
|
||||
"admin.config.reverse_auth_user": "Käänteinen todennus käyttäjä",
|
||||
"admin.config.ssh_config": "SSH asetukset",
|
||||
"admin.config.ssh_enabled": "Käytössä",
|
||||
"admin.config.ssh_port": "Portti",
|
||||
|
||||
@@ -1779,6 +1779,7 @@
|
||||
"repo.pulls.title_desc": "souhaite fusionner %[1]d révision(s) depuis <code>%[2]s</code> vers <code id=\"branch_target\">%[3]s</code>",
|
||||
"repo.pulls.merged_title_desc": "a fusionné %[1]d révision(s) à partir de <code>%[2]s</code> vers <code>%[3]s</code> %[4]s",
|
||||
"repo.pulls.change_target_branch_at": "a remplacé la branche cible <b><strike>%s</strike></b> par <b>%s</b> %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "a marqué la demande d’ajout comme travail en cours %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "a marqué la demande d’ajout comme prête pour relecture %s",
|
||||
"repo.pulls.tab_conversation": "Discussion",
|
||||
"repo.pulls.tab_commits": "Révisions",
|
||||
@@ -1796,6 +1797,9 @@
|
||||
"repo.pulls.is_closed": "La demande d’ajout a été fermée.",
|
||||
"repo.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.",
|
||||
"repo.pulls.cannot_merge_work_in_progress": "Cette demande d’ajout est encore en chantier",
|
||||
"repo.pulls.still_in_progress": "Toujours en cours ?",
|
||||
"repo.pulls.add_prefix": "Ajouter le préfixe <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Enlever le préfixe <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Cette demande d’ajout est impossible par manque d’informations de bifurcation.",
|
||||
"repo.pulls.files_conflicted": "Cette demande d’ajout est en conflit avec la branche ciblée",
|
||||
"repo.pulls.is_checking": "Vérification de la possibilité de fusionner automatiquement…",
|
||||
@@ -1836,6 +1840,7 @@
|
||||
"repo.pulls.wrong_commit_id": "l’ID de la révision doit être une ID de révision sur la branche cible",
|
||||
"repo.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.",
|
||||
"repo.pulls.no_merge_helper": "Activez des options de fusion dans les paramètres du dépôt ou fusionnez la demande manuellement.",
|
||||
"repo.pulls.no_merge_wip": "Cette demande d’ajout ne peut pas être fusionnée car elle est marquée en chantier.",
|
||||
"repo.pulls.no_merge_not_ready": "Cette demande d’ajout n’est pas prête à être fusionnée. Veuillez vérifier les évaluations et le résultat des procédures.",
|
||||
"repo.pulls.no_merge_access": "Vous n’êtes pas autorisé⋅e à fusionner cette demande d’ajout.",
|
||||
"repo.pulls.merge_pull_request": "Fusionner",
|
||||
@@ -3018,6 +3023,8 @@
|
||||
"admin.dashboard.cron.finished": "Tâche récurrente %[1]s terminée",
|
||||
"admin.dashboard.delete_inactive_accounts": "Supprimer tous les comptes non actifs",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Début de la suppression de tous les comptes inactifs.",
|
||||
"admin.dashboard.delete_repo_archives": "Supprimer toutes les archives des dépôts (ZIP, TAR.GZ, etc..)",
|
||||
"admin.dashboard.delete_repo_archives.started": "Début de la suppression de toutes les archives de dépôts.",
|
||||
"admin.dashboard.delete_missing_repos": "Supprimer tous les dépôts dont les fichiers Git sont manquants",
|
||||
"admin.dashboard.delete_missing_repos.started": "Début de la suppression de tous les dépôts dépourvus de Git.",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Supprimer les avatars de dépôt générés",
|
||||
@@ -3026,6 +3033,7 @@
|
||||
"admin.dashboard.update_mirrors": "Actualiser les miroirs",
|
||||
"admin.dashboard.repo_health_check": "Vérifier l’état de santé de tous les dépôts",
|
||||
"admin.dashboard.check_repo_stats": "Voir les statistiques de tous les dépôts",
|
||||
"admin.dashboard.archive_cleanup": "Supprimer les archives des vieux dépôts",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Nettoyer les branches supprimées",
|
||||
"admin.dashboard.update_migration_poster_id": "Actualiser les ID des affiches de migration",
|
||||
"admin.dashboard.git_gc_repos": "Exécuter le ramasse-miette des dépôts",
|
||||
@@ -3338,6 +3346,7 @@
|
||||
"admin.config.lfs_root_path": "Répertoire racine LFS",
|
||||
"admin.config.log_file_root_path": "Chemin des fichiers logs",
|
||||
"admin.config.script_type": "Type de script",
|
||||
"admin.config.reverse_auth_user": "Annuler l’authentification de l’utilisateur",
|
||||
"admin.config.ssh_config": "Configuration SSH",
|
||||
"admin.config.ssh_enabled": "Activé",
|
||||
"admin.config.ssh_start_builtin_server": "Utiliser le serveur incorporé",
|
||||
|
||||
@@ -1780,6 +1780,7 @@
|
||||
"repo.pulls.title_desc": "ag iarraidh %[1]d gealltanas a chumasc ó <code>%[2]s</code> go <code id=\"branch_target\">%[3]s</code>",
|
||||
"repo.pulls.merged_title_desc": "cumasc %[1]d tiomantas ó <code>%[2]s</code> go <code>%[3]s</code> %[4]s",
|
||||
"repo.pulls.change_target_branch_at": "athraigh an spriocbhrainse ó <b>%s</b> go <b>%s</b> %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "marcáladh an iarratas tarraingthe mar obair ar siúl %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "marcáladh an iarratas tarraingthe mar réidh le haghaidh athbhreithnithe %s",
|
||||
"repo.pulls.tab_conversation": "Comhrá",
|
||||
"repo.pulls.tab_commits": "Tiomáintí",
|
||||
@@ -1797,8 +1798,9 @@
|
||||
"repo.pulls.is_closed": "Tá an t-iarratas tarraingthe dúnta.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Tosaigh an teideal le <strong>%s</strong></a> chun an t-iarratas tarraingthe a chosc ó chumasc de thaisme.",
|
||||
"repo.pulls.cannot_merge_work_in_progress": "Tá an t-iarratas tarraingthe seo fós ina obair ar siúl",
|
||||
"repo.pulls.convert_to_draft": "Á dhéanamh fós? Tiontaigh ina dhréacht",
|
||||
"repo.pulls.ready_for_review": "Réidh le haghaidh athbhreithnithe",
|
||||
"repo.pulls.still_in_progress": "Fós ar siúl?",
|
||||
"repo.pulls.add_prefix": "Cuir réimír <strong>%s</strong> leis",
|
||||
"repo.pulls.remove_prefix": "Bain an réimír <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Tá an t-iarratas tarraingthe seo briste mar gheall ar fhaisnéis forc a bheith in easnamh.",
|
||||
"repo.pulls.files_conflicted": "Tá coinbhleachtaí sa bhrainse seo nach mór a réiteach",
|
||||
"repo.pulls.is_checking": "Ag seiceáil an féidir cumasc go huathoibríoch…",
|
||||
@@ -1807,7 +1809,6 @@
|
||||
"repo.pulls.is_empty": "Tá na hathruithe ar an mbrainse seo ar an spriocbhrainse cheana féin. Is tiomantas folamh é seo.",
|
||||
"repo.pulls.is_unrelated": "Níl aon stair i gcoiteann ag an mbrainse seo leis an mbrainse sprice.",
|
||||
"repo.pulls.merging_is_blocked": "Tá cumasc bactha",
|
||||
"repo.pulls.merging_is_blocked_desc": "Tá an chumasc bactha toisc nach bhfuil na ceanglais chumaisc comhlíonta",
|
||||
"repo.pulls.review_required": "Athbhreithniú ag teastáil",
|
||||
"repo.pulls.changes_approved": "Athruithe ceadaithe",
|
||||
"repo.pulls.approvals_granted_1": "%d athbhreithniú á cheadú ag athbhreithneoirí a bhfuil rochtain scríofa acu.",
|
||||
@@ -1840,6 +1841,7 @@
|
||||
"repo.pulls.wrong_commit_id": "ní mór don ID tiomantais a bheith ina ID tiomantais ar an mbrainse sprice",
|
||||
"repo.pulls.no_merge_desc": "Ní féidir an t-iarratas tarraingthe seo a chumasc toisc go bhfuil gach rogha cumaisc stór díchumasaithe.",
|
||||
"repo.pulls.no_merge_helper": "Cumasaigh roghanna cumaisc i socruithe an stór nó cumasc an t-iarratas tarraingthe de láimh.",
|
||||
"repo.pulls.no_merge_wip": "Ní féidir an t-iarratas tarraingthe seo a chumasc toisc go bhfuil sé marcáilte mar obair atá ar siúl é.",
|
||||
"repo.pulls.no_merge_not_ready": "Níl an t-iarratas tarraingthe seo réidh le cumasc. Seiceáil stádas an athbhreithnithe agus na seiceálacha stádais.",
|
||||
"repo.pulls.no_merge_access": "Níl tú údaraithe chun an t-iarratas tarraingthe seo a chumasc.",
|
||||
"repo.pulls.merge_pull_request": "Cruthaigh tiomantas cumaisc",
|
||||
@@ -3052,6 +3054,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s críochnaithe",
|
||||
"admin.dashboard.delete_inactive_accounts": "Scrios gach cuntas neamhghníomhach",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Cuireadh tús leis an tasc chun na cuntais dhíghníomhachtaithe go léir a scriosadh",
|
||||
"admin.dashboard.delete_repo_archives": "Scrios gach cartlann stórais (ZIP, TAR.GZ, srl.)",
|
||||
"admin.dashboard.delete_repo_archives.started": "Cuireadh tús leis an tasc chun gach cartlann stórtha a scriosadh",
|
||||
"admin.dashboard.delete_missing_repos": "Scrios gach stóras atá in easnamh ar a gcuid comhad Git",
|
||||
"admin.dashboard.delete_missing_repos.started": "Cuireadh tús leis an tasc chun na stórais uile a scriosadh nach bhfuil a gcomhaid Git iontu",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Scrios abhatáranna stórtha ginte",
|
||||
@@ -3060,6 +3064,7 @@
|
||||
"admin.dashboard.update_mirrors": "Scátháin a nuashonrú",
|
||||
"admin.dashboard.repo_health_check": "Seiceáil sláinte gach stóras",
|
||||
"admin.dashboard.check_repo_stats": "Seiceáil gach staitisticí stórais",
|
||||
"admin.dashboard.archive_cleanup": "Scrios sean-chartlanna stórais",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Glan suas brainsí scriosta",
|
||||
"admin.dashboard.update_migration_poster_id": "Nuashonraigh ID póstaer imir",
|
||||
"admin.dashboard.git_gc_repos": "Bailitheoir bruscair gach stórais",
|
||||
@@ -3373,6 +3378,7 @@
|
||||
"admin.config.lfs_root_path": "Cosán Fréamh LFS",
|
||||
"admin.config.log_file_root_path": "Cosán Logála",
|
||||
"admin.config.script_type": "Cineál Script",
|
||||
"admin.config.reverse_auth_user": "Úsáideoir Fíordheimhnithe Droim ar Ais",
|
||||
"admin.config.ssh_config": "Cumraíocht SSH",
|
||||
"admin.config.ssh_enabled": "Cumasaithe",
|
||||
"admin.config.ssh_start_builtin_server": "Úsáid Freastalaí Ionsuite",
|
||||
|
||||
@@ -1143,6 +1143,7 @@
|
||||
"admin.config.lfs_root_path": "LFS Gyökérkönyvtár",
|
||||
"admin.config.log_file_root_path": "Naplófájl elérési útja",
|
||||
"admin.config.script_type": "Szkript Típus",
|
||||
"admin.config.reverse_auth_user": "Visszafelé hitelesítés felhasználója",
|
||||
"admin.config.ssh_config": "SSH Konfiguráció",
|
||||
"admin.config.ssh_enabled": "Engedélyezett",
|
||||
"admin.config.ssh_start_builtin_server": "Beépített szerver használata",
|
||||
|
||||
@@ -970,6 +970,7 @@
|
||||
"admin.config.repo_root_path": "Jalur akar repositori",
|
||||
"admin.config.lfs_root_path": "Path Root LFS",
|
||||
"admin.config.script_type": "Jenis skrip",
|
||||
"admin.config.reverse_auth_user": "Mengembalikan pengguna otentikasi",
|
||||
"admin.config.ssh_config": "Konfigurasi SSH",
|
||||
"admin.config.ssh_enabled": "Aktif",
|
||||
"admin.config.ssh_root_path": "Path Induk",
|
||||
|
||||
@@ -1066,6 +1066,9 @@
|
||||
"repo.pulls.manually_merged": "Unito manualmente",
|
||||
"repo.pulls.is_closed": "La pull request è stata chiusa.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Inizia il titolo con <strong>%s</strong></a> per evitare che la pull request venga unita accidentalmente.",
|
||||
"repo.pulls.still_in_progress": "Ancora in corso?",
|
||||
"repo.pulls.add_prefix": "Aggiungi prefisso <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Rimuovi il prefisso <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Questa pull request è rovinata a causa di informazioni mancanti del fork.",
|
||||
"repo.pulls.is_ancestor": "Questo ramo è già incluso nel ramo di destinazione. Non c'è nulla da unire.",
|
||||
"repo.pulls.is_empty": "Le modifiche di questo ramo sono già nel ramo di destinazione. Questo sarà un commit vuoto.",
|
||||
@@ -1081,6 +1084,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d in attesa di revisione",
|
||||
"repo.pulls.no_merge_desc": "Questa pull request non può essere unita perché tutte le opzioni di merge del repository sono disattivate.",
|
||||
"repo.pulls.no_merge_helper": "Attiva le opzioni di merge nelle impostazioni del repository o unisci la pull request manualmente.",
|
||||
"repo.pulls.no_merge_wip": "Questa pull request non può essere unita perché è contrassegnata come un lavoro in corso.",
|
||||
"repo.pulls.no_merge_access": "Non sei autorizzato ad effettuare il merge su questa pull request.",
|
||||
"repo.pulls.merge_pull_request": "Crea commit unito",
|
||||
"repo.pulls.squash_merge_pull_request": "Crea commit mescolato",
|
||||
@@ -1720,11 +1724,13 @@
|
||||
"admin.dashboard.cron.error": "Errore in Cron: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s ha finito",
|
||||
"admin.dashboard.delete_inactive_accounts": "Elimina tutti gli account non attivati",
|
||||
"admin.dashboard.delete_repo_archives": "Elimina tutti gli archivi dei repository (ZIP, TAR.GZ, etc..)",
|
||||
"admin.dashboard.delete_missing_repos": "Elimina tutti i repository mancanti dei loro file Git",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Elimina gli avatar generati nelle repository",
|
||||
"admin.dashboard.update_mirrors": "Aggiorna Mirror",
|
||||
"admin.dashboard.repo_health_check": "Controlla integrità di tutti i repository",
|
||||
"admin.dashboard.check_repo_stats": "Controlla tutte le statistiche del repository",
|
||||
"admin.dashboard.archive_cleanup": "Elimina vecchi archivi del repository",
|
||||
"admin.dashboard.update_migration_poster_id": "Aggiorna gli ID del poster di migrazione",
|
||||
"admin.dashboard.reinit_missing_repos": "Reinizializza tutti i repository Git mancanti per i quali esistono cambiamenti registrati esistenti",
|
||||
"admin.dashboard.sync_external_users": "Sincronizza dati utente esterno",
|
||||
@@ -1944,6 +1950,7 @@
|
||||
"admin.config.lfs_root_path": "Percorso file LFS",
|
||||
"admin.config.log_file_root_path": "Percorso dei log",
|
||||
"admin.config.script_type": "Tipo di Script",
|
||||
"admin.config.reverse_auth_user": "Autenticazione Utente Inversa",
|
||||
"admin.config.ssh_config": "Configurazione SSH",
|
||||
"admin.config.ssh_enabled": "Attivo",
|
||||
"admin.config.ssh_start_builtin_server": "Usa il server integrato",
|
||||
|
||||
@@ -1757,6 +1757,7 @@
|
||||
"repo.pulls.title_desc": "が <code>%[2]s</code> から <code id=\"branch_target\">%[3]s</code> への %[1]d コミットのマージを希望しています",
|
||||
"repo.pulls.merged_title_desc": "が %[1]d 個のコミットを <code>%[2]s</code> から <code>%[3]s</code> へマージ %[4]s",
|
||||
"repo.pulls.change_target_branch_at": "がターゲットブランチを <b>%s</b> から <b>%s</b> に変更 %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "がこのプルリクエストを作業中(WIP)とマーク %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "がこのプルリクエストをレビュー可とマーク %s",
|
||||
"repo.pulls.tab_conversation": "会話",
|
||||
"repo.pulls.tab_commits": "コミット",
|
||||
@@ -1774,6 +1775,9 @@
|
||||
"repo.pulls.is_closed": "プルリクエストはクローズされています。",
|
||||
"repo.pulls.title_wip_desc": "誤ってマージされないようにするには、<a href=\"#\">タイトルの頭に <strong>%s</strong> を付けます</a>。",
|
||||
"repo.pulls.cannot_merge_work_in_progress": "このプルリクエストはまだ作業中(WIP)です",
|
||||
"repo.pulls.still_in_progress": "まだ作業中?",
|
||||
"repo.pulls.add_prefix": "先頭に <strong>%s</strong> を追加",
|
||||
"repo.pulls.remove_prefix": "先頭の <strong>%s</strong> を除去",
|
||||
"repo.pulls.data_broken": "このプルリクエストは、フォークの情報が見つからないため壊れています。",
|
||||
"repo.pulls.files_conflicted": "このブランチには競合があり解消が必要です",
|
||||
"repo.pulls.is_checking": "自動マージが可能か確認しています…",
|
||||
@@ -1814,6 +1818,7 @@
|
||||
"repo.pulls.wrong_commit_id": "コミットIDはターゲットブランチ上のコミットIDを指定してください",
|
||||
"repo.pulls.no_merge_desc": "リポジトリのマージオプションがすべて無効になっているため、このプルリクエストをマージすることはできせん。",
|
||||
"repo.pulls.no_merge_helper": "リポジトリ設定でマージを有効にするか、手動でマージしてください。",
|
||||
"repo.pulls.no_merge_wip": "このプルリクエストはWork In Progressとマークされているため、マージすることはできません。",
|
||||
"repo.pulls.no_merge_not_ready": "このプルリクエストはマージする準備ができていません。 レビュー状況とステータスチェックを確認してください。",
|
||||
"repo.pulls.no_merge_access": "このプルリクエストをマージする権限がありません。",
|
||||
"repo.pulls.merge_pull_request": "マージコミットを作成",
|
||||
@@ -2983,6 +2988,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s が完了",
|
||||
"admin.dashboard.delete_inactive_accounts": "アクティベートされていないアカウントをすべて削除",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "アクティベートされていないアカウントをすべて削除するタスクを開始しました。",
|
||||
"admin.dashboard.delete_repo_archives": "リポジトリのアーカイブ (ZIP, TAR.GZ, etc..) をすべて削除",
|
||||
"admin.dashboard.delete_repo_archives.started": "リポジトリアーカイブをすべて削除するタスクを開始しました",
|
||||
"admin.dashboard.delete_missing_repos": "Gitファイルが存在しないリポジトリをすべて削除",
|
||||
"admin.dashboard.delete_missing_repos.started": "Gitファイルが存在しないリポジトリをすべて削除するタスクを開始しました",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "自動生成したリポジトリアバターを削除",
|
||||
@@ -2991,6 +2998,7 @@
|
||||
"admin.dashboard.update_mirrors": "ミラーの更新",
|
||||
"admin.dashboard.repo_health_check": "全リポジトリのヘルスチェック",
|
||||
"admin.dashboard.check_repo_stats": "全リポジトリの統計情報を更新",
|
||||
"admin.dashboard.archive_cleanup": "古いリポジトリアーカイブの削除",
|
||||
"admin.dashboard.deleted_branches_cleanup": "削除ブランチのクリーンアップ",
|
||||
"admin.dashboard.update_migration_poster_id": "移行する投稿者IDの更新",
|
||||
"admin.dashboard.git_gc_repos": "すべてのリポジトリでガベージコレクションを実行",
|
||||
@@ -3303,6 +3311,7 @@
|
||||
"admin.config.lfs_root_path": "LFSルートパス",
|
||||
"admin.config.log_file_root_path": "ログの保存先パス",
|
||||
"admin.config.script_type": "スクリプトの種類",
|
||||
"admin.config.reverse_auth_user": "リバース認証ユーザー",
|
||||
"admin.config.ssh_config": "SSH設定",
|
||||
"admin.config.ssh_enabled": "有効",
|
||||
"admin.config.ssh_start_builtin_server": "ビルトインサーバーを使用",
|
||||
|
||||
@@ -1778,6 +1778,7 @@
|
||||
"repo.pulls.title_desc": "<code>%[2]s</code> 에서 <code id=\"branch_target\">%[3]s</code> 로 %[1]d commits 를 머지하려 합니다",
|
||||
"repo.pulls.merged_title_desc": "<code>%[2]s</code> 에서 <code>%[3]s</code> 로 %[1]d commits 를 머지했습니다 %[4]s",
|
||||
"repo.pulls.change_target_branch_at": "타겟 브랜치 변경 전 <b>%s</b> 후 <b>%s</b> %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "풀 리퀘스트를 작업 진도 %s로 마킹함",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "풀 리퀘스트를 %s 검토 준비로 마킹함",
|
||||
"repo.pulls.tab_conversation": "대화",
|
||||
"repo.pulls.tab_commits": "커밋",
|
||||
@@ -1790,6 +1791,9 @@
|
||||
"repo.pulls.merged_info_text": "브랜치 %s는 이제 삭제할 수 있습니다.",
|
||||
"repo.pulls.is_closed": "풀 리퀘스트가 닫혔습니다.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">제목을 <strong>%s</strong></a> 로 시작하여 실수로 머지되지 않도록 풀 리퀘스트를 차단합니다.",
|
||||
"repo.pulls.still_in_progress": "아직 진행 중입니까?",
|
||||
"repo.pulls.add_prefix": "접두사 <strong>%s</strong> 추가",
|
||||
"repo.pulls.remove_prefix": "접두사 <strong>%s</strong> 제거",
|
||||
"repo.pulls.data_broken": "포크 정보 누락으로 인해 이 풀 리퀘스트가 손상되었습니다.",
|
||||
"repo.pulls.is_ancestor": "이 브랜치는 이미 대상 브랜치에 포함되어 있습니다. 머지할 내용이 없습니다.",
|
||||
"repo.pulls.is_empty": "이 브랜치의 변경 사항은 이미 대상 브랜치에 있습니다. 이것은 빈 커밋이 될 것입니다.",
|
||||
@@ -1808,6 +1812,7 @@
|
||||
"repo.pulls.wrong_commit_id": "커밋 ID는 대상 브랜치의 커밋 ID여야 합니다",
|
||||
"repo.pulls.no_merge_desc": "모든 리포지토리 머지 옵션이 비활성화 되어있기 때문에 이 풀 리퀘스트를 머지할 수 없습니다.",
|
||||
"repo.pulls.no_merge_helper": "저장소 설정에서 머지 옵션을 활성화하거나 풀 리퀘스트를 수동으로 머지하십시오.",
|
||||
"repo.pulls.no_merge_wip": "이 풀 리퀘스트는 작업 진행 중으로 마킹되어 있어 머지할 수 없습니다.",
|
||||
"repo.pulls.no_merge_not_ready": "이 풀 리퀘스트는 머지할 준비가 되지 않았습니다. 검토와 상태를 확인하십시오.",
|
||||
"repo.pulls.no_merge_access": "이 풀 리퀘스트를 머지할 권한이 없습니다.",
|
||||
"repo.pulls.merge_pull_request": "머지 커밋 생성",
|
||||
@@ -2927,6 +2932,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s 완료됨",
|
||||
"admin.dashboard.delete_inactive_accounts": "모든 비활성화 계정 삭제",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "비활성 계정의 삭제 작업이 시작되었습니다",
|
||||
"admin.dashboard.delete_repo_archives": "모든 리포지토리의 아카이빙 (ZIP, TAR.GZ 등) 삭제",
|
||||
"admin.dashboard.delete_repo_archives.started": "모든 리포지토리 아카이브 삭제 작업이 시작되었습니다",
|
||||
"admin.dashboard.delete_missing_repos": "Git 파일이 없는 모든 리포지토리 삭제",
|
||||
"admin.dashboard.delete_missing_repos.started": "Git 파일이 없는 모든 리포지토리 삭제 작업이 시작되었습니다",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "생성된 리포지토리 아바타 삭제",
|
||||
@@ -2935,6 +2942,7 @@
|
||||
"admin.dashboard.update_mirrors": "미러 업데이트",
|
||||
"admin.dashboard.repo_health_check": "모든 리포지토리 헬스 체크",
|
||||
"admin.dashboard.check_repo_stats": "모든 리포지토리 통계 확인",
|
||||
"admin.dashboard.archive_cleanup": "오래된 리포지토리 아카이브 삭제",
|
||||
"admin.dashboard.deleted_branches_cleanup": "삭제된 브랜치 정리",
|
||||
"admin.dashboard.update_migration_poster_id": "마이그레이션 포스터 ID 갱신",
|
||||
"admin.dashboard.git_gc_repos": "모든 리포지토리 가비지 콜렉션",
|
||||
@@ -3247,6 +3255,7 @@
|
||||
"admin.config.lfs_root_path": "LFS 루트 경로",
|
||||
"admin.config.log_file_root_path": "로그 경로",
|
||||
"admin.config.script_type": "스크립트 유형",
|
||||
"admin.config.reverse_auth_user": "역방향 사용자 인증",
|
||||
"admin.config.ssh_config": "SSH 설정",
|
||||
"admin.config.ssh_enabled": "활성화됨",
|
||||
"admin.config.ssh_start_builtin_server": "빌트-인 서버 사용",
|
||||
|
||||
@@ -1356,6 +1356,9 @@
|
||||
"repo.pulls.merged_info_text": "Atzaru %s tagad var dzēst.",
|
||||
"repo.pulls.is_closed": "Izmaiņu pieprasījums tika aizvērts.",
|
||||
"repo.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.",
|
||||
"repo.pulls.still_in_progress": "Joprojām notiek izstrāde?",
|
||||
"repo.pulls.add_prefix": "Pievienot <strong>%s</strong> prefiksu",
|
||||
"repo.pulls.remove_prefix": "Noņemt <strong>%s</strong> prefiksu",
|
||||
"repo.pulls.data_broken": "Izmaiņu pieprasījums ir bojāts, jo dzēsta informācija no atdalītā repozitorija.",
|
||||
"repo.pulls.is_ancestor": "Atzars jau ir pilnībā iekļauts mērķā atzarā. Nav izmaiņu, ko sapludināt.",
|
||||
"repo.pulls.is_empty": "Mērķa atzars jau satur šī atzara izmaiņas. Šī revīzija būs tukša.",
|
||||
@@ -1373,6 +1376,7 @@
|
||||
"repo.pulls.waiting_count_n": "nepieciešamas %d recenzijas",
|
||||
"repo.pulls.no_merge_desc": "Šo izmaiņu pieprasījumu nav iespējams sapludināt, jo nav atļauts neviens sapludināšanas veids.",
|
||||
"repo.pulls.no_merge_helper": "Lai sapludinātu šo izmaiņu pieprasījumu, iespējojiet vismaz vienu sapludināšanas veidu repozitorija iestatījumos vai sapludiniet to manuāli.",
|
||||
"repo.pulls.no_merge_wip": "Šo izmaiņu pieprasījumu nav iespējams sapludināt, jo tas ir atzīmēts, ka darbs pie tā vēl nav pabeigts.",
|
||||
"repo.pulls.no_merge_access": "Jums nav tiesību sapludināt šo izmaiņu pieprasījumu.",
|
||||
"repo.pulls.merge_pull_request": "Izveidot sapludināšana revīziju",
|
||||
"repo.pulls.squash_merge_pull_request": "Izveidot saspiešanas revīziju",
|
||||
@@ -2163,12 +2167,14 @@
|
||||
"admin.dashboard.cron.error": "Kļūda Cron: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s pabeigts",
|
||||
"admin.dashboard.delete_inactive_accounts": "Dzēst visus neaktivizētos kontus",
|
||||
"admin.dashboard.delete_repo_archives": "Dzēst visu repozitoriju arhīvus (ZIP, TAR.GZ utt.)",
|
||||
"admin.dashboard.delete_missing_repos": "Dzēst visus repozitorijus, kam trūkst Git failu",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Dzēst ģenerētos repozitoriju attēlus",
|
||||
"admin.dashboard.sync_repo_branches": "Sinhronizācija ar dabubāzi izlaida atzarus no git datiem",
|
||||
"admin.dashboard.update_mirrors": "Atjaunot spoguļus",
|
||||
"admin.dashboard.repo_health_check": "Pārbaudīt visu repozitoriju veselību",
|
||||
"admin.dashboard.check_repo_stats": "Pārbaudīt visu repozitoriju statistiku",
|
||||
"admin.dashboard.archive_cleanup": "Dzēst repozitoriju vecos arhīvus",
|
||||
"admin.dashboard.update_migration_poster_id": "Atjaunot migrācijām autoru ID",
|
||||
"admin.dashboard.reinit_missing_repos": "Atkārtoti inicializēt visus pazaudētos Git repozitorijus par kuriem eksistē ieraksti",
|
||||
"admin.dashboard.sync_external_users": "Sinhronizēt ārējo lietotāju datus",
|
||||
@@ -2410,6 +2416,7 @@
|
||||
"admin.config.lfs_root_path": "LFS saknes ceļš",
|
||||
"admin.config.log_file_root_path": "Žurnalizēšanas ceļš",
|
||||
"admin.config.script_type": "Skripta veids",
|
||||
"admin.config.reverse_auth_user": "Reversā lietotāja autentifikācija",
|
||||
"admin.config.ssh_config": "SSH konfigurācija",
|
||||
"admin.config.ssh_enabled": "Iespējots",
|
||||
"admin.config.ssh_start_builtin_server": "Izmantot iebūvēto serveri",
|
||||
|
||||
@@ -1043,6 +1043,9 @@
|
||||
"repo.pulls.manually_merged": "Handmatig samengevoegd",
|
||||
"repo.pulls.is_closed": "Deze pull-aanvraag is gesloten.",
|
||||
"repo.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.",
|
||||
"repo.pulls.still_in_progress": "Nog steeds bezig?",
|
||||
"repo.pulls.add_prefix": "Voeg <strong>%s</strong> prefix toe",
|
||||
"repo.pulls.remove_prefix": "Verwijder <strong>%s</strong> prefix",
|
||||
"repo.pulls.data_broken": "Deze pull-aanvraag is ongeldig wegens missende fork-informatie.",
|
||||
"repo.pulls.is_ancestor": "Deze branch is al opgenomen in de toegewezen branch. Er is niets om samen te voegen.",
|
||||
"repo.pulls.is_empty": "De wijzigingen in deze branch bevinden zich al in de toegewezen branch. Dit zal een lege commit zijn.",
|
||||
@@ -1058,6 +1061,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d wachtende beoordelingen",
|
||||
"repo.pulls.no_merge_desc": "Deze pull-aanvraag kan niet worden samengevoegd, omdat alle samenvoegingsopties zijn uitgeschakeld.",
|
||||
"repo.pulls.no_merge_helper": "Schakel samenvoegingsopties in in de repositoryinstellingen of voeg de pull-aanvraag handmatig samen.",
|
||||
"repo.pulls.no_merge_wip": "Deze pull-aanvraag kan niet worden samengevoegd omdat hij als \"work in progress\" is gemarkeerd.",
|
||||
"repo.pulls.no_merge_access": "Je bent niet gemachtigd om deze pull-aanvraag samen te voegen.",
|
||||
"repo.pulls.merge_pull_request": "Maak samenvoeg-commit",
|
||||
"repo.pulls.squash_merge_pull_request": "Maak samenvoeg-commit",
|
||||
@@ -1591,6 +1595,7 @@
|
||||
"admin.dashboard.update_mirrors": "Mirrors bijwerken",
|
||||
"admin.dashboard.repo_health_check": "Controleer alle repositories",
|
||||
"admin.dashboard.check_repo_stats": "Bekijk alle repository statistieken",
|
||||
"admin.dashboard.archive_cleanup": "Verwijder oude repositories archieven",
|
||||
"admin.dashboard.update_migration_poster_id": "Werk migratie-poster IDs bij",
|
||||
"admin.dashboard.reinit_missing_repos": "Herinitialiseer alle ontbrekende Git repositories waarvoor records bestaan",
|
||||
"admin.dashboard.sync_external_users": "Externe gebruikersgegevens synchroniseren",
|
||||
@@ -1760,6 +1765,7 @@
|
||||
"admin.config.lfs_root_path": "LFS rootpad",
|
||||
"admin.config.log_file_root_path": "Log-pad",
|
||||
"admin.config.script_type": "Script type",
|
||||
"admin.config.reverse_auth_user": "Omgekeerde verificatie gebruiker",
|
||||
"admin.config.ssh_config": "SSH-configuratie",
|
||||
"admin.config.ssh_enabled": "Ingeschakeld",
|
||||
"admin.config.ssh_start_builtin_server": "Gebruik de ingebouwde server",
|
||||
|
||||
@@ -178,8 +178,6 @@
|
||||
"search.code_kind": "Szukaj kodu…",
|
||||
"search.code_empty": "Rozpocznij szukanie kodu.",
|
||||
"search.code_empty_description": "Wpisz słowo, aby wyszukać w kodzie.",
|
||||
"search.code_search_incomplete": "Wyszukiwanie wstrzymane. Może brakować niektórych pasujących plików.",
|
||||
"search.code_search_invalid": "Nieprawidłowe zapytanie: %s",
|
||||
"search.code_search_unavailable": "Wyszukiwanie kodu jest obecnie niedostępne. Skontaktuj się z zarządcą witryny.",
|
||||
"search.code_search_by_git_grep": "Obecne wyniki wyszukania w kodzie są zapewniane przez \"git grep\". Lepsze wyniki mogą pojawić się, gdy zarządzający uruchomi indekser repoztorium.",
|
||||
"search.package_kind": "Szukaj pakietów…",
|
||||
@@ -197,7 +195,6 @@
|
||||
"aria.footer": "Stopka",
|
||||
"aria.footer.software": "O oprogramowaniu",
|
||||
"aria.footer.links": "Łącza",
|
||||
"aria.pagination": "Dzielenie na strony",
|
||||
"heatmap.number_of_contributions_in_the_last_12_months": "%s kontrybucji w ostatnich 12 miesiącach",
|
||||
"heatmap.no_contributions": "Brak kontrybucji",
|
||||
"heatmap.less": "Mniej",
|
||||
@@ -398,7 +395,6 @@
|
||||
"auth.twofa_scratch_used": "Użyłeś/aś swojego kodu jednorazowego. Przekierowano Cię do strony z ustawieniami autoryzacji dwuetapowej, gdzie możesz usunąć swoje urządzenie lub wygenerować nowy kod jednorazowy.",
|
||||
"auth.twofa_passcode_incorrect": "Twój kod autoryzacji jest niepoprawny. Jeśli zapodziałeś(-aś) swoje urządzenie, użyj swojego kodu jednorazowego do zalogowania.",
|
||||
"auth.twofa_scratch_token_incorrect": "Twój kod jednorazowy jest niepoprawny.",
|
||||
"auth.twofa_too_many_attempts": "Zbyt wiele błędnych haseł. Spróbuj ponownie później lub użyj swojego kodu jednorazowego.",
|
||||
"auth.twofa_required": "Aby otrzymać dostęp do repozytoriów, musisz ustawić identyfikację dwuetapową, lub spróbuj zalogować się ponownie.",
|
||||
"auth.login_userpass": "Zaloguj się",
|
||||
"auth.oauth_signup_tab": "Utwórz nowe konto",
|
||||
@@ -417,7 +413,6 @@
|
||||
"auth.authorize_application_created_by": "Ta aplikacja została stworzona przez %s.",
|
||||
"auth.authorize_application_description": "Jeżeli otrzymasz dostęp, możliwe będzie otwarcie i uzupełnienie wszystkich informacji o Twoim koncie, włączając prywatne repozytoria i organizacje.",
|
||||
"auth.authorize_application_with_scopes": "Z zakresami: %s",
|
||||
"auth.authorize_application_new_scopes": "Nowe zakresy: %s",
|
||||
"auth.authorize_title": "Zezwolić \"%s\" na dostęp do Twojego konta?",
|
||||
"auth.authorization_failed": "Autoryzacja nie powiodła się",
|
||||
"auth.authorization_failed_desc": "Autoryzacja nie powiodła się, ponieważ wykryto niewłaściwe zapytanie. Proszę skontaktować się z utrzymującym aplikację, do której próbujesz uzyskać dostęp.",
|
||||
@@ -660,7 +655,6 @@
|
||||
"settings.privacy": "Prywatność",
|
||||
"settings.keep_activity_private": "Ukryj aktywność na stronie profilu",
|
||||
"settings.keep_activity_private_popup": "Aktywność staje się widoczna tylko dla Ciebie i administratorów",
|
||||
"settings.keep_activity_private_disabled": "Nie masz uprawnień do zmiany widoczności Twojej aktywności. Aby uzyskać więcej informacji, skontaktuj się z zarządcą witryny.",
|
||||
"settings.lookup_avatar_by_mail": "Znajdź awatar po adresie e-mail",
|
||||
"settings.enable_custom_avatar": "Włącz niestandardowe awatary",
|
||||
"settings.choose_new_avatar": "Wybierz nowy avatar",
|
||||
@@ -1042,9 +1036,7 @@
|
||||
"repo.migrate_repo": "Przenieś repozytorium",
|
||||
"repo.migrate.clone_address": "Migruj/klonuj z adresu URL",
|
||||
"repo.migrate.clone_address_desc": "Adres HTTP(S) lub \"klona\" Gita istniejącego repozytorium",
|
||||
"repo.migrate.gitea_token_desc": "Utwórz token dostępu w sekcji Aplikacje ustawień konta w instancji źródłowej.",
|
||||
"repo.migrate.github_token_desc": "Możesz umieścić jeden lub więcej żetonów tutaj, oddzielając je przecinkami, aby przyspieszyć migrację przez obejście limitu API GitHub. UWAGA: Nadużywanie tej funkcji może naruszać zasady dostawcy usług i może prowadzić do zablokowania Twoich kont(a).",
|
||||
"repo.migrate.gitlab_token_desc": "Utwórz osobisty żeton dostępu z zakresami read_api i read_repository.",
|
||||
"repo.migrate.clone_local_path": "lub ścieżka lokalnego serwera",
|
||||
"repo.migrate.permission_denied": "Nie możesz importować lokalnych repozytoriów.",
|
||||
"repo.migrate.invalid_local_path": "Lokalna ścieżka jest niepoprawna. Nie istnieje lub nie jest katalogiem.",
|
||||
@@ -1066,10 +1058,6 @@
|
||||
"repo.migrate.onedev.description": "Migracja danych z code.onedev.io lub innych instancji OneDev.",
|
||||
"repo.migrate.codebase.description": "Migracja danych z codebasehq.com.",
|
||||
"repo.migrate.gitbucket.description": "Migruj dane z instancji GitBucket.",
|
||||
"repo.migrate.bitbucket.description": "Migruj dane z instancji bitbucket.org lub Bitbucket Data Center i Serwer.",
|
||||
"repo.migrate.bitbucket.variant": "Chmura (bitbucket.org)",
|
||||
"repo.migrate.bitbucket.token_desc": "Żeton Atlassian API lub repozytorium lub żeton dostępu do obszaru roboczego z dostępem do repozytoriów i propozycji zmian. Wymagane dla prywatnych repozytoriów i podwyższenie limitu częstotliwości API.",
|
||||
"repo.migrate.bitbucketserver.token_desc": "Żeton dostępu HTTP. Jeśli jest ustawiony, jest używany zamiast powyższego hasła. Nazwa użytkownika domyślna dla właściciela żetonu.",
|
||||
"repo.migrate.codecommit.description": "Migracja danych z AWS CodeCommit.",
|
||||
"repo.migrate.codecommit.aws_access_key_id": "Identyfikator klucza dostępu AWS",
|
||||
"repo.migrate.codecommit.aws_secret_access_key": "Tajny klucz dostępu AWS",
|
||||
@@ -1372,8 +1360,6 @@
|
||||
"repo.issues.new.clear_assignees": "Usuń przypisanych",
|
||||
"repo.issues.new.no_assignees": "Brak przypisanych",
|
||||
"repo.issues.new.no_reviewers": "Brak recenzentów",
|
||||
"repo.creation_blocked_by_owner": "Nie można utworzyć zgłoszenia lub propozycji zmian, ponieważ jesteś zablokowany przez właściciela repozytorium.",
|
||||
"repo.creation_blocked_by_assignee": "Nie można utworzyć zgłoszenia lub propozycji zmian, ponieważ jesteś zablokowany przez pełnomocnika.",
|
||||
"repo.issues.edit.already_changed": "Nie można zapisać zmian w tym zgłoszeniu. Wygląda na to, że ta zawartość została już zmieniona przez innego użytkownika. Odśwież stronę i ponów edycję, by nie nadpisać najnowszych zmian.",
|
||||
"repo.issues.edit.blocked_user": "Nie można edytować zawartości, ponieważ zablokował Cię autor lub właściciel repozytorium.",
|
||||
"repo.issues.choose.get_started": "Rozpocznij",
|
||||
@@ -1434,7 +1420,6 @@
|
||||
"repo.issues.filter_assignee_any_assignee": "Przypisane do kogokolwiek",
|
||||
"repo.issues.filter_poster": "Autor",
|
||||
"repo.issues.filter_user_placeholder": "Wyszukaj użytkowników",
|
||||
"repo.issues.filter_by_username_placeholder": "Filtruj według nazwy użytkownika…",
|
||||
"repo.issues.filter_user_no_select": "Wszyscy użytkownicy",
|
||||
"repo.issues.filter_type": "Typ",
|
||||
"repo.issues.filter_type.all_issues": "Wszystkie zgłoszenia",
|
||||
@@ -1485,7 +1470,6 @@
|
||||
"repo.issues.context.edit": "Edytuj",
|
||||
"repo.issues.context.delete": "Usuń",
|
||||
"repo.issues.no_content": "Brak opisu.",
|
||||
"repo.issues.project_workflow": "Przepływ pracy projektu %s",
|
||||
"repo.issues.comment_no_content": "Brak komentarza.",
|
||||
"repo.issues.close": "Zamknij zgłoszenie",
|
||||
"repo.issues.comment_pull_merged_at": "scalono złożenie %[1]s do %[2]s %[3]s",
|
||||
@@ -1531,7 +1515,6 @@
|
||||
"repo.issues.label_description": "Opis etykiety",
|
||||
"repo.issues.label_color": "Kolor etykiety",
|
||||
"repo.issues.label_color_invalid": "Nieprawidłowy kolor",
|
||||
"repo.issues.label_color_random": "Wytwórz losowy kolor",
|
||||
"repo.issues.label_exclusive": "Na wyłączność",
|
||||
"repo.issues.label_archive": "Etykieta Archiwum",
|
||||
"repo.issues.label_archived_filter": "Pokaż zarchiwizowane etykiety",
|
||||
@@ -1670,7 +1653,6 @@
|
||||
"repo.issues.review.content.empty": "Musisz pozostawić komentarz o pożądanej zmianie/zmianach.",
|
||||
"repo.issues.review.reject": "zażądał(-a) zmian %s",
|
||||
"repo.issues.review.wait": "został poproszony o recenzję %s",
|
||||
"repo.codeowners": "Właściciele kodu",
|
||||
"repo.issues.review.codeowners_rules": "Zasady współwłaścicieli kodu",
|
||||
"repo.issues.review.add_review_request": "poprosił o recenzję %s %s",
|
||||
"repo.issues.review.remove_review_request": "usunięto prośbę o recenzję %s %s",
|
||||
@@ -1732,20 +1714,16 @@
|
||||
"repo.pulls.show_changes_since_your_last_review": "Pokaż zmiany od Twojej ostatniej recenzji",
|
||||
"repo.pulls.showing_specified_commit_range": "Wyświetlanie zmian tylko pomiędzy %[1]s..%[2]s",
|
||||
"repo.pulls.select_commit_hold_shift_for_range": "Wybierz złożenie. Przytrzymaj Shift i kliknij, by wybrać zakres.",
|
||||
"repo.pulls.review_not_possible_for_commit_range": "Przegląd nie jest możliwy podczas przeglądania zakresu zmian",
|
||||
"repo.pulls.commit_position": "Zmiana %[1]d z %[2]d",
|
||||
"repo.pulls.previous_commit": "Poprzednia zmiana",
|
||||
"repo.pulls.next_commit": "Następna zmiana",
|
||||
"repo.pulls.filter_changes_by_commit": "Filtruj według złożenia",
|
||||
"repo.pulls.nothing_to_compare": "Te gałęzie są sobie równe. Nie ma potrzeby tworzyć propozycji zmian.",
|
||||
"repo.pulls.no_common_history": "Te gałęzie nie współdzielą jednolitej bazy scalenia. Wybierz inną bazę lub porównaj gałęzie.",
|
||||
"repo.pulls.nothing_to_compare_have_tag": "Wybrane gałęzie/znaczniki są takie same.",
|
||||
"repo.pulls.nothing_to_compare_and_allow_empty_pr": "Te gałęzie są równe. Ten PR będzie pusty.",
|
||||
"repo.pulls.has_pull_request_link": "Propozycja zmian pomiędzy tymi gałęziami już istnieje: %s",
|
||||
"repo.pulls.create": "Utwórz Pull Request",
|
||||
"repo.pulls.title_desc": "chce scalić %[1]d commity/ów z <code>%[2]s</code> do <code id=\"branch_target\">%[3]s</code>",
|
||||
"repo.pulls.merged_title_desc": "scala %[1]d commity/ów z <code>%[2]s</code> do <code>%[3]s</code> %[4]s",
|
||||
"repo.pulls.change_target_branch_at": "zmienia gałąź docelową z <b>%s</b> na <b>%s</b> %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "oznaczono propozycję zmian jako pracę w toku %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "oznaczono propozycję zmian jako gotową do sprawdzenia %s",
|
||||
"repo.pulls.tab_conversation": "Dyskusja",
|
||||
"repo.pulls.tab_commits": "Commity",
|
||||
@@ -1754,22 +1732,16 @@
|
||||
"repo.pulls.merged": "Scalone",
|
||||
"repo.pulls.merged_success": "Propozycja zmian pomyślnie scalona i zamknięta",
|
||||
"repo.pulls.closed": "Propozycja zmian zamknięta",
|
||||
"repo.pulls.closed_with_unmerged_commits": "Zamknięto z niescalonymi zmianami",
|
||||
"repo.pulls.closed_with_unmerged_commits_desc": "Ta propozycja zmian jest zamknięta, ale gałąź %s posiada niescalone zmiany.",
|
||||
"repo.pulls.manually_merged": "Ręcznie scalone",
|
||||
"repo.pulls.merged_info_text": "Gałąź %s może teraz zostać usunięta.",
|
||||
"repo.pulls.merged_info_desc": "Wszystko gotowe, gałąź została scalona.",
|
||||
"repo.pulls.restore_branch": "Przywróć gałąź",
|
||||
"repo.pulls.is_closed": "Pull Request został zamknięty.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Poprzedź tytuł przy pomocy <strong>%s</strong></a>, aby zapobiec przypadkowemu scaleniu tego Pull Requesta.",
|
||||
"repo.pulls.still_in_progress": "Wciąż w toku?",
|
||||
"repo.pulls.add_prefix": "Dodaj <strong>%s</strong> prefiks",
|
||||
"repo.pulls.remove_prefix": "Usuń <strong>%s</strong> prefiks",
|
||||
"repo.pulls.data_broken": "Ten Pull Request jest uszkodzony ze względu na brakujące informacje o forku.",
|
||||
"repo.pulls.is_checking_desc": "Poczekaj, gdy sprawdzamy status gałęzi.",
|
||||
"repo.pulls.is_ancestor": "Ta gałąź jest już w gałęzi docelowej. Nie ma nic do scalenia.",
|
||||
"repo.pulls.is_empty": "Zmiany na tej gałęzi znajdują się już na docelowej gałęzi. To będzie puste złożenie.",
|
||||
"repo.pulls.is_unrelated": "Ta gałąź nie ma historii wspólnej z docelową gałęzią.",
|
||||
"repo.pulls.merging_is_blocked": "Scalanie jest zablokowane",
|
||||
"repo.pulls.review_required": "Wymagana recenzja",
|
||||
"repo.pulls.changes_approved": "Zmiany zatwierdzone",
|
||||
"repo.pulls.blocked_by_rejection": "Ta propozycja zmian zawiera zmiany, o które prosił oficjalny recenzent.",
|
||||
"repo.pulls.blocked_by_outdated_branch": "Ta propozycja zmian jest zablokowana z powodu nieaktualności.",
|
||||
"repo.pulls.can_auto_merge_desc": "Ten Pull Request może być automatycznie scalony.",
|
||||
@@ -1785,6 +1757,7 @@
|
||||
"repo.pulls.wrong_commit_id": "iD zmiany musi być ID zmiany na docelowej gałęzi",
|
||||
"repo.pulls.no_merge_desc": "Ten Pull Request nie może zostać scalony, ponieważ wszystkie opcje scalania dla tego repozytorium są wyłączone.",
|
||||
"repo.pulls.no_merge_helper": "Włącz opcje scalania w ustawieniach repozytorium, lub scal ten Pull Request ręcznie.",
|
||||
"repo.pulls.no_merge_wip": "Ten pull request nie może być automatycznie scalony, ponieważ jest oznaczony jako praca w toku.",
|
||||
"repo.pulls.no_merge_not_ready": "Ta propozycja zmian nie jest gotowa do scalenia. Sprawdź status recenzji i kontrolki statusu.",
|
||||
"repo.pulls.no_merge_access": "Nie masz uprawnień, aby scalić ten Pull Request.",
|
||||
"repo.pulls.merge_pull_request": "Utwórz złożenie scalające",
|
||||
@@ -2882,6 +2855,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s zakończony",
|
||||
"admin.dashboard.delete_inactive_accounts": "Usuń wszystkie nieaktywowane konta",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Zadanie usunięcia wszystkich nieaktywnych kont rozpoczęte",
|
||||
"admin.dashboard.delete_repo_archives": "Usuń wszystkie archiwa repozytoriów (ZIP, TAR.GZ, itp..)",
|
||||
"admin.dashboard.delete_repo_archives.started": "Zadanie usunięcia wszystkich zarchiwizowanych repozytoriów zostało rozpoczęte",
|
||||
"admin.dashboard.delete_missing_repos": "Usuń wszystkie repozytoria, które nie mają plików Gita",
|
||||
"admin.dashboard.delete_missing_repos.started": "Zadanie usunięcia wszystkich repozytorium nieposiadających plików git zostało rozpoczęte",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Usuń wygenerowane awatary repozytoriów",
|
||||
@@ -2890,6 +2865,7 @@
|
||||
"admin.dashboard.update_mirrors": "Aktualizuj kopie lustrzane",
|
||||
"admin.dashboard.repo_health_check": "Sprawdź stan wszystkich repozytoriów",
|
||||
"admin.dashboard.check_repo_stats": "Sprawdź statystyki wszystkich repozytoriów",
|
||||
"admin.dashboard.archive_cleanup": "Usuń stare archiwa repozytoriów",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Wyczyść usunięte gałęzie",
|
||||
"admin.dashboard.update_migration_poster_id": "Aktualizuj ID plakatu migracji",
|
||||
"admin.dashboard.git_gc_repos": "Wykonaj zbieranie nieużytków ze wszystkich repozytoriów",
|
||||
@@ -3195,6 +3171,7 @@
|
||||
"admin.config.lfs_root_path": "Ścieżka główna katalogu LFS",
|
||||
"admin.config.log_file_root_path": "Ścieżka dla logów",
|
||||
"admin.config.script_type": "Typ skryptu",
|
||||
"admin.config.reverse_auth_user": "Użytkownik odwrotnego proxy",
|
||||
"admin.config.ssh_config": "Konfiguracja SSH",
|
||||
"admin.config.ssh_enabled": "Włączone",
|
||||
"admin.config.ssh_start_builtin_server": "Wykorzystaj wbudowany serwer",
|
||||
|
||||
@@ -1601,6 +1601,9 @@
|
||||
"repo.pulls.merged_info_text": "O branch %s pode ser excluído.",
|
||||
"repo.pulls.is_closed": "O pull request foi fechado.",
|
||||
"repo.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.",
|
||||
"repo.pulls.still_in_progress": "Ainda em andamento?",
|
||||
"repo.pulls.add_prefix": "Adicione o prefixo <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Remover o prefixo <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Este pull request está quebrado devido a falta de informação do fork.",
|
||||
"repo.pulls.is_ancestor": "Este branch já está incluído no branch de destino. Não há nada para mesclar.",
|
||||
"repo.pulls.is_empty": "As alterações neste branch já estão na branch de destino. Este será um commit vazio.",
|
||||
@@ -1619,6 +1622,7 @@
|
||||
"repo.pulls.wrong_commit_id": "id de commit tem que ser um id de commit no branch de destino",
|
||||
"repo.pulls.no_merge_desc": "O merge deste pull request não pode ser aplicado porque todas as opções de mesclagem do repositório estão desabilitadas.",
|
||||
"repo.pulls.no_merge_helper": "Habilite as opções de merge nas configurações do repositório ou faça o merge do pull request manualmente.",
|
||||
"repo.pulls.no_merge_wip": "O merge deste pull request não pode ser aplicado porque está marcado como um trabalho em andamento.",
|
||||
"repo.pulls.no_merge_not_ready": "Este pull request não está pronto para o merge, verifique o status da revisão e as verificações de status.",
|
||||
"repo.pulls.no_merge_access": "Você não está autorizado para realizar o merge deste pull request.",
|
||||
"repo.pulls.merge_pull_request": "Criar commit de merge",
|
||||
@@ -2473,11 +2477,13 @@
|
||||
"admin.dashboard.cron.error": "Erro no Cron: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s terminou",
|
||||
"admin.dashboard.delete_inactive_accounts": "Excluir todas as contas não ativadas",
|
||||
"admin.dashboard.delete_repo_archives": "Excluir todos os arquivos dos repositórios (ZIP, TAR.GZ, etc..)",
|
||||
"admin.dashboard.delete_missing_repos": "Excluir todos os repositórios que não possuem seus arquivos Git",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Excluir avatares gerados do repositório",
|
||||
"admin.dashboard.update_mirrors": "Atualizar Espelhamentos",
|
||||
"admin.dashboard.repo_health_check": "Verificar estado de saúde de todos os repositórios",
|
||||
"admin.dashboard.check_repo_stats": "Verificar estatísticas de todos os repositórios",
|
||||
"admin.dashboard.archive_cleanup": "Apagar arquivos antigos de repositório",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Limpar branches apagados",
|
||||
"admin.dashboard.update_migration_poster_id": "Sincronizar os IDs do remetente da migração",
|
||||
"admin.dashboard.git_gc_repos": "Coleta de lixo em todos os repositórios",
|
||||
@@ -2736,6 +2742,7 @@
|
||||
"admin.config.lfs_root_path": "Caminho raiz do LFS",
|
||||
"admin.config.log_file_root_path": "Caminho do Log",
|
||||
"admin.config.script_type": "Tipo de Script",
|
||||
"admin.config.reverse_auth_user": "Usuário de Autenticação Reversa",
|
||||
"admin.config.ssh_config": "Configuração de SSH",
|
||||
"admin.config.ssh_enabled": "Habilitado",
|
||||
"admin.config.ssh_start_builtin_server": "Usar o Servidor Embutido",
|
||||
|
||||
@@ -1781,6 +1781,7 @@
|
||||
"repo.pulls.title_desc": "quer integrar %[1]d cometimento(s) do ramo <code>%[2]s</code> no ramo <code id=\"branch_target\">%[3]s</code>",
|
||||
"repo.pulls.merged_title_desc": "integrou %[1]d cometimento(s) do ramo <code>%[2]s</code> no ramo <code>%[3]s</code> %[4]s",
|
||||
"repo.pulls.change_target_branch_at": "mudou o ramo de destino de <b>%s</b> para <b>%s</b> %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "marcou o pedido de integração como trabalho em andamento %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "marcou o pedido de integração como estando pronto para revisão %s",
|
||||
"repo.pulls.tab_conversation": "Diálogo",
|
||||
"repo.pulls.tab_commits": "Cometimentos",
|
||||
@@ -1798,6 +1799,9 @@
|
||||
"repo.pulls.is_closed": "O pedido de integração foi fechado.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Inicie o título com <strong>%s</strong></a> para evitar que a integração seja executada acidentalmente.",
|
||||
"repo.pulls.cannot_merge_work_in_progress": "Este pedido de integração ainda é trabalho em curso",
|
||||
"repo.pulls.still_in_progress": "Ainda em andamento?",
|
||||
"repo.pulls.add_prefix": "Adicione o prefixo <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Remover o prefixo <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Este pedido de integração está danificado devido à falta de informação da derivação.",
|
||||
"repo.pulls.files_conflicted": "Este ramo tem conflitos que têm de ser resolvidos",
|
||||
"repo.pulls.is_checking": "Verificando se é possível integrar automaticamente…",
|
||||
@@ -1838,6 +1842,7 @@
|
||||
"repo.pulls.wrong_commit_id": "ID do cometimento tem que ser um ID de cometimento no ramo de destino",
|
||||
"repo.pulls.no_merge_desc": "A integração constante neste pedido não pode ser executada porque todas as opções de integração do repositório estão desabilitadas.",
|
||||
"repo.pulls.no_merge_helper": "Habilite as opções de integração nas configurações do repositório ou faça a integração manualmente.",
|
||||
"repo.pulls.no_merge_wip": "A integração constante neste pedido não pode ser executada porque está marcada como sendo trabalho em andamento.",
|
||||
"repo.pulls.no_merge_not_ready": "A integração constante neste pedido não pode ser executada. Verifique o estado da revisão e as verificações de estado.",
|
||||
"repo.pulls.no_merge_access": "Não tem autorização para executar a integração constante neste pedido.",
|
||||
"repo.pulls.merge_pull_request": "Criar um cometimento de integração",
|
||||
@@ -3097,6 +3102,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s concluído",
|
||||
"admin.dashboard.delete_inactive_accounts": "Eliminar todas as contas que não tenham sido habilitadas",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Foi iniciada a eliminação de todas as contas que não foram habilitadas.",
|
||||
"admin.dashboard.delete_repo_archives": "Eliminar todos os arquivos dos repositórios (ZIP, TAR.GZ, etc)",
|
||||
"admin.dashboard.delete_repo_archives.started": "Foi iniciada a tarefa de eliminação de todos os repositórios arquivados.",
|
||||
"admin.dashboard.delete_missing_repos": "Eliminar todos os repositórios que não tenham os seus ficheiros Git",
|
||||
"admin.dashboard.delete_missing_repos.started": "Foi iniciada a tarefa de eliminação de todos os repositórios que não têm ficheiros git.",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Eliminar avatares gerados do repositório",
|
||||
@@ -3105,6 +3112,7 @@
|
||||
"admin.dashboard.update_mirrors": "Sincronizar réplicas",
|
||||
"admin.dashboard.repo_health_check": "Verificar a saúde de todos os repositórios",
|
||||
"admin.dashboard.check_repo_stats": "Verificar as estatísticas de todos os repositórios",
|
||||
"admin.dashboard.archive_cleanup": "Eliminar arquivos de repositórios antigos",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Limpar ramos eliminados",
|
||||
"admin.dashboard.update_migration_poster_id": "Sincronizar os IDs do remetente da migração",
|
||||
"admin.dashboard.git_gc_repos": "Fazer a recolha do lixo em todos os repositórios",
|
||||
@@ -3418,6 +3426,7 @@
|
||||
"admin.config.lfs_root_path": "Localização dos LFS",
|
||||
"admin.config.log_file_root_path": "Localização dos registos",
|
||||
"admin.config.script_type": "Tipo de script",
|
||||
"admin.config.reverse_auth_user": "Utilizador de autenticação reversa",
|
||||
"admin.config.ssh_config": "Configuração SSH",
|
||||
"admin.config.ssh_enabled": "Habilitado",
|
||||
"admin.config.ssh_start_builtin_server": "Usar servidor integrado",
|
||||
|
||||
@@ -1332,6 +1332,9 @@
|
||||
"repo.pulls.merged_info_text": "Ветку %s теперь можно удалить.",
|
||||
"repo.pulls.is_closed": "Запрос на слияние закрыт.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Добавьте <strong>%s</strong> в начало заголовка</a> для защиты от случайного досрочного принятия запроса на слияние",
|
||||
"repo.pulls.still_in_progress": "Всё ещё в процессе?",
|
||||
"repo.pulls.add_prefix": "Добавить <strong>%s</strong> префикс",
|
||||
"repo.pulls.remove_prefix": "Удалить <strong>%s</strong> префикс",
|
||||
"repo.pulls.data_broken": "Содержимое этого запроса было нарушено вследствие удаления информации форка.",
|
||||
"repo.pulls.is_ancestor": "Эта ветка уже включена в целевую ветку. Сливать нечего.",
|
||||
"repo.pulls.is_empty": "Изменения из этой ветки уже есть в целевой ветке. Это будет пустой коммит.",
|
||||
@@ -1348,6 +1351,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d ожидающих отзывов",
|
||||
"repo.pulls.no_merge_desc": "Запрос на слияние не может быть принят, так как отключены все настройки слияния.",
|
||||
"repo.pulls.no_merge_helper": "Включите опции слияния в настройках репозитория или совершите слияние этого запроса вручную.",
|
||||
"repo.pulls.no_merge_wip": "Данный запрос на слияние не может быть принят, поскольку он помечен как находящийся в разработке.",
|
||||
"repo.pulls.no_merge_access": "У вас нет права для слияния данного запроса.",
|
||||
"repo.pulls.merge_pull_request": "Создать коммит на слияние",
|
||||
"repo.pulls.squash_merge_pull_request": "Создать объединённый коммит",
|
||||
@@ -2123,11 +2127,13 @@
|
||||
"admin.dashboard.cron.error": "Ошибка в запланированном задании: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Планировщик: %[1]s завершено",
|
||||
"admin.dashboard.delete_inactive_accounts": "Удалить все неактивированные учётные записи",
|
||||
"admin.dashboard.delete_repo_archives": "Удалить все архивы репозиториев (ZIP, TAR.GZ, и т.д..)",
|
||||
"admin.dashboard.delete_missing_repos": "Удалить все записи о репозиториях с отсутствующими файлами Git",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Удалить генерированные аватары репозитория",
|
||||
"admin.dashboard.update_mirrors": "Обновить зеркала",
|
||||
"admin.dashboard.repo_health_check": "Проверка состояния всех репозиториев",
|
||||
"admin.dashboard.check_repo_stats": "Проверить всю статистику репозитория",
|
||||
"admin.dashboard.archive_cleanup": "Удалить старые архивы репозитория",
|
||||
"admin.dashboard.update_migration_poster_id": "Обновить ID плакатов миграции",
|
||||
"admin.dashboard.reinit_missing_repos": "Переинициализировать все отсутствующие Git репозитории, для которых существуют записи",
|
||||
"admin.dashboard.sync_external_users": "Синхронизировать данные внешних пользователей",
|
||||
@@ -2364,6 +2370,7 @@
|
||||
"admin.config.lfs_root_path": "Корневой путь LFS",
|
||||
"admin.config.log_file_root_path": "Путь к журналу",
|
||||
"admin.config.script_type": "Тип скрипта",
|
||||
"admin.config.reverse_auth_user": "Имя пользователя для авторизации на reverse proxy",
|
||||
"admin.config.ssh_config": "Конфигурация SSH",
|
||||
"admin.config.ssh_enabled": "SSH включён",
|
||||
"admin.config.ssh_start_builtin_server": "Использовать встроенный сервер",
|
||||
|
||||
@@ -988,6 +988,9 @@
|
||||
"repo.pulls.manually_merged": "අතින් සංයුක්ත කර ඇත",
|
||||
"repo.pulls.is_closed": "අදින්න ඉල්ලීම වසා දමා ඇත.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">අහම්බෙන් ඒකාබද්ධ කිරීමෙන් අදින්න ඉල්ලීම වැළැක්වීම සඳහා <strong>%s</strong></a> සමඟ මාතෘකාව ආරම්භ කරන්න.",
|
||||
"repo.pulls.still_in_progress": "තවමත් ක්රියාත්මක වෙමින් තිබේද?",
|
||||
"repo.pulls.add_prefix": "<strong>%s</strong> උපසර්ගය එකතු කරන්න",
|
||||
"repo.pulls.remove_prefix": "<strong>%s</strong> උපසර්ගය ඉවත් කරන්න",
|
||||
"repo.pulls.data_broken": "අතුරුදහන් වූ දෙබලක තොරතුරු හේතුවෙන් මෙම අදින්න ඉල්ලීම කැඩී ඇත.",
|
||||
"repo.pulls.can_auto_merge_desc": "මෙම අදින්න ඉල්ලීම ස්වයංක්රීයව ඒකාබද්ධ කළ හැක.",
|
||||
"repo.pulls.cannot_auto_merge_helper": "ගැටුම් විසඳීම සඳහා අතින් ඒකාබද්ධ කරන්න.",
|
||||
@@ -1001,6 +1004,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d සමාලෝචන බලා",
|
||||
"repo.pulls.no_merge_desc": "සියලු නිධි ඒකාබද්ධ විකල්ප අක්රීය කර ඇති නිසා මෙම අදින්න ඉල්ලීම ඒකාබද්ධ කළ නොහැක.",
|
||||
"repo.pulls.no_merge_helper": "ගබඩාවේ සැකසුම් ඒකාබද්ධ විකල්ප සක්රීය කරන්න හෝ අදින්න ඉල්ලීම අතින් ඒකාබද්ධ කරන්න.",
|
||||
"repo.pulls.no_merge_wip": "එය ප්රගතියේ කාර්යයක් ලෙස සලකුණු කර ඇති නිසා මෙම අදින්න ඉල්ලීම ඒකාබද්ධ කළ නොහැකිය.",
|
||||
"repo.pulls.no_merge_access": "මෙම අදින්න ඉල්ලීම ඒකාබද්ධ කිරීමට ඔබට අවසර නැත.",
|
||||
"repo.pulls.merge_pull_request": "ඒකාබද්ධ කැප නිර්මාණය",
|
||||
"repo.pulls.squash_merge_pull_request": "ස්කොෂ් කැපීමට සාදන්න",
|
||||
@@ -1626,11 +1630,13 @@
|
||||
"admin.dashboard.cron.error": "ක්රෝන් හි දෝෂය: %s:%[3]s",
|
||||
"admin.dashboard.cron.finished": "ක්රෝන්:%[1]s අවසන් වී ඇත",
|
||||
"admin.dashboard.delete_inactive_accounts": "සියලුම අක්රීය ගිණුම් මකන්න",
|
||||
"admin.dashboard.delete_repo_archives": "සියලුම ගබඩාවන් 'ලේඛනාගාරය මකන්න (ZIP, TAR.GZ, ආදිය..)",
|
||||
"admin.dashboard.delete_missing_repos": "ඔවුන්ගේ Git ගොනු අතුරුදහන් වූ සියලුම ගබඩාවන් මකන්න",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "ජනනය කරන ලද නිධි අවතාරය මකන්න",
|
||||
"admin.dashboard.update_mirrors": "දර්පණ යාවත්කාලීන කරන්න",
|
||||
"admin.dashboard.repo_health_check": "සෞඛ්ය සියලු ගබඩාවලදී පරීක්ෂා",
|
||||
"admin.dashboard.check_repo_stats": "සියළුම කෝෂ්ඨවල සංඛ්යාලේඛන පරීක්ෂා කරන්න",
|
||||
"admin.dashboard.archive_cleanup": "පැරණි නිධි ලේඛනාගාරය මකන්න",
|
||||
"admin.dashboard.update_migration_poster_id": "සංක්රමණ පෝස්ටර් යාවත්කාලීන කිරීම",
|
||||
"admin.dashboard.reinit_missing_repos": "අතුරුදහන් වූ සියලුම ගිට් නිධි නැවත ආරම්භ කිරීම",
|
||||
"admin.dashboard.sync_external_users": "බාහිර පරිශීලක දත්ත සමමුහූර්තනය",
|
||||
@@ -1837,6 +1843,7 @@
|
||||
"admin.config.lfs_root_path": "LFS මූල මාර්ගය",
|
||||
"admin.config.log_file_root_path": "ලොග් මාර්ගය",
|
||||
"admin.config.script_type": "ස්ක්රිප්ට් වර්ගය",
|
||||
"admin.config.reverse_auth_user": "ප්රතිලෝම පරිශීලක සත්යාපන",
|
||||
"admin.config.ssh_config": "SSH වින්යාසය",
|
||||
"admin.config.ssh_enabled": "සබල කර ඇත",
|
||||
"admin.config.ssh_start_builtin_server": "Built-දී සේවාදායකය භාවිතා",
|
||||
|
||||
@@ -1468,6 +1468,7 @@
|
||||
"admin.config.lfs_root_path": "LFS Rotsökväg",
|
||||
"admin.config.log_file_root_path": "Sökväg för loggar",
|
||||
"admin.config.script_type": "Script-typ",
|
||||
"admin.config.reverse_auth_user": "Motsatt autentiserings användare",
|
||||
"admin.config.ssh_config": "SSH-konfiguration",
|
||||
"admin.config.ssh_enabled": "Aktiverad",
|
||||
"admin.config.ssh_start_builtin_server": "Använd inbyggd Server",
|
||||
|
||||
@@ -1664,6 +1664,7 @@
|
||||
"repo.pulls.title_desc": "<code>%[2]s</code> içindeki %[1]d işlemeyi <code id=\"branch_target\">%[3]s</code> ile birleştirmek istiyor",
|
||||
"repo.pulls.merged_title_desc": "%[4]s <code>%[2]s</code> içindeki %[1]d işlemeyi <code>%[3]s</code> ile birleştirdi",
|
||||
"repo.pulls.change_target_branch_at": "hedef dal <b>%s</b> adresinden <b>%s</b>%s adresine değiştirildi",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "değişiklik isteğini devam eden iş olarak işaretledi %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "değişiklik isteğini incelemeye hazır olarak işaretledi %s",
|
||||
"repo.pulls.tab_conversation": "Sohbet",
|
||||
"repo.pulls.tab_commits": "İşleme",
|
||||
@@ -1676,6 +1677,9 @@
|
||||
"repo.pulls.merged_info_text": "%s dalı şimdi silinebilir.",
|
||||
"repo.pulls.is_closed": "Değişiklik isteği kapatıldı.",
|
||||
"repo.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>",
|
||||
"repo.pulls.still_in_progress": "Hala devam ediyor mu?",
|
||||
"repo.pulls.add_prefix": "<strong>%s</strong> ön ekini ekle",
|
||||
"repo.pulls.remove_prefix": "<strong>%s</strong> ön ekini kaldır",
|
||||
"repo.pulls.data_broken": "Bu değişiklik isteği, çatallama bilgilerinin eksik olması nedeniyle bozuldu.",
|
||||
"repo.pulls.is_ancestor": "Bu dal zaten hedef dalda mevcut. Birleştirilecek bir şey yok.",
|
||||
"repo.pulls.is_empty": "Bu daldaki değişiklikler zaten hedef dalda mevcut. Bu boş bir işleme olacaktır.",
|
||||
@@ -1694,6 +1698,7 @@
|
||||
"repo.pulls.wrong_commit_id": "işleme kimliği, hedef daldaki bir işleme kimliği olmalıdır",
|
||||
"repo.pulls.no_merge_desc": "Tüm depo birleştirme seçenekleri devre dışı bırakıldığından, bu değişiklik isteği birleştirilemez.",
|
||||
"repo.pulls.no_merge_helper": "Depo ayarlarındaki birleştirme seçeneklerini etkinleştirin veya değişiklik isteğini el ile birleştirin.",
|
||||
"repo.pulls.no_merge_wip": "Bu değişiklik isteği birleştirilemez çünkü devam eden bir çalışma olarak işaretlendi.",
|
||||
"repo.pulls.no_merge_not_ready": "Bu değişiklik isteği birleştirilmeye hazır değil, inceleme durumunu ve durum kontrollerini kontrol edin.",
|
||||
"repo.pulls.no_merge_access": "Bu değişiklik isteğini birleştirme yetkiniz yok.",
|
||||
"repo.pulls.merge_pull_request": "Birleştirme işlemi oluştur",
|
||||
@@ -2691,6 +2696,8 @@
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s bitti",
|
||||
"admin.dashboard.delete_inactive_accounts": "Etkinleştirilmemiş tüm hesapları sil",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "Etkinleştirilmemiş tüm hesapları silme görevi başladı",
|
||||
"admin.dashboard.delete_repo_archives": "Tüm depoların arşivlerini (ZIP, TAR.GZ, vb.) sil",
|
||||
"admin.dashboard.delete_repo_archives.started": "Tüm depo arşivlerini silme görevi başladı",
|
||||
"admin.dashboard.delete_missing_repos": "Git dosyaları eksik olan tüm depoları sil",
|
||||
"admin.dashboard.delete_missing_repos.started": "Git dosyaları eksik olan tüm depoları silme görevi başladı",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Oluşturulan depo resimlerini sil",
|
||||
@@ -2699,6 +2706,7 @@
|
||||
"admin.dashboard.update_mirrors": "Yansıları Güncelle",
|
||||
"admin.dashboard.repo_health_check": "Tüm depoların sağlığını denetle",
|
||||
"admin.dashboard.check_repo_stats": "Tüm depo istatistiklerini denetle",
|
||||
"admin.dashboard.archive_cleanup": "Eski depo arşivlerini sil",
|
||||
"admin.dashboard.deleted_branches_cleanup": "Silinen dalları temizle",
|
||||
"admin.dashboard.update_migration_poster_id": "Taşıma poster kimliklerini güncelle",
|
||||
"admin.dashboard.git_gc_repos": "Tüm depolardaki atıkları temizle",
|
||||
@@ -2992,6 +3000,7 @@
|
||||
"admin.config.lfs_root_path": "LFS Kök Dizini",
|
||||
"admin.config.log_file_root_path": "Günlük Dosyası Yolu",
|
||||
"admin.config.script_type": "Betik Türü",
|
||||
"admin.config.reverse_auth_user": "Tersine Yetkilendirme Kullanıcısı",
|
||||
"admin.config.ssh_config": "SSH Yapılandırması",
|
||||
"admin.config.ssh_enabled": "Aktif",
|
||||
"admin.config.ssh_start_builtin_server": "Yerleşik Sunucuyu Kullan",
|
||||
|
||||
@@ -1474,6 +1474,9 @@
|
||||
"repo.pulls.merged_info_text": "Гілку %s тепер можна видалити.",
|
||||
"repo.pulls.is_closed": "Запит на злиття закрито.",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">Почніть заголовок з <strong>%s</strong></a> щоб запобігти випадковому об'єднанню.",
|
||||
"repo.pulls.still_in_progress": "Ще не закінчено?",
|
||||
"repo.pulls.add_prefix": "Додати префікс <strong>%s</strong>",
|
||||
"repo.pulls.remove_prefix": "Видалити префікс <strong>%s</strong>",
|
||||
"repo.pulls.data_broken": "Збій цього запиту на злиття через відсутність інформації про форк.",
|
||||
"repo.pulls.is_ancestor": "Цю гілку вже включено до цільової гілки. Нема чого об'єднувати.",
|
||||
"repo.pulls.can_auto_merge_desc": "Цей запит на злиття можна об'єднати автоматично.",
|
||||
@@ -1488,6 +1491,7 @@
|
||||
"repo.pulls.waiting_count_n": "очікується %d рецензії(й)",
|
||||
"repo.pulls.no_merge_desc": "Цей запит на злиття неможливо об'єднати, оскільки всі параметри об'єднання сховищ вимкнено.",
|
||||
"repo.pulls.no_merge_helper": "Увімкніть параметри об'єднання в налаштуваннях сховища або об'єднайте запит на злиття вручну.",
|
||||
"repo.pulls.no_merge_wip": "Цей запит на злиття неможливо об'єднаний, оскільки він позначений як незавершений.",
|
||||
"repo.pulls.no_merge_access": "Ви не авторизовані об'єднувати цей запит на злиття.",
|
||||
"repo.pulls.merge_pull_request": "Створити коміт об'єднання",
|
||||
"repo.pulls.squash_merge_pull_request": "Створити зварений (squash) коміт",
|
||||
@@ -2288,12 +2292,14 @@
|
||||
"admin.dashboard.cron.error": "Помилка в Cron: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s завершено",
|
||||
"admin.dashboard.delete_inactive_accounts": "Видалити всі неактивовані облікові записи",
|
||||
"admin.dashboard.delete_repo_archives": "Видалити всі архіви репозиторіїв (ZIP, TAR.GZ, і т. д..)",
|
||||
"admin.dashboard.delete_missing_repos": "Видаліть усі сховища, в яких відсутні файли Git",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "Видалити згенеровані аватарки сховища",
|
||||
"admin.dashboard.sync_repo_branches": "Синхронізувати пропущені гілки з даних git до баз даних",
|
||||
"admin.dashboard.update_mirrors": "Оновити дзеркала",
|
||||
"admin.dashboard.repo_health_check": "Перевірка стану всіх репозиторіїв",
|
||||
"admin.dashboard.check_repo_stats": "Перевірити статистику всіх репозиторіїв",
|
||||
"admin.dashboard.archive_cleanup": "Видалити старі архіви репозиторіїв",
|
||||
"admin.dashboard.update_migration_poster_id": "Оновити мігровані ID авторів",
|
||||
"admin.dashboard.reinit_missing_repos": "Заново ініціалізувати всі відсутні сховища Git'а, для яких існують записи",
|
||||
"admin.dashboard.sync_external_users": "Синхронізувати дані зовнішніх користувачів",
|
||||
@@ -2540,6 +2546,7 @@
|
||||
"admin.config.lfs_root_path": "Кореневий шлях LFS",
|
||||
"admin.config.log_file_root_path": "Шлях до журналу",
|
||||
"admin.config.script_type": "Тип скрипта",
|
||||
"admin.config.reverse_auth_user": "Ім'я користувача для авторизації на reverse proxy",
|
||||
"admin.config.ssh_config": "Конфігурація SSH",
|
||||
"admin.config.ssh_enabled": "Увімкнено",
|
||||
"admin.config.ssh_start_builtin_server": "Використовувати вбудований сервер",
|
||||
|
||||
@@ -1781,7 +1781,7 @@
|
||||
"repo.pulls.title_desc": "请求将 %[1]d 次代码提交从 <code>%[2]s</code> 合并至 <code id=\"branch_target\">%[3]s</code>",
|
||||
"repo.pulls.merged_title_desc": "于 %[4]s 将 %[1]d 次代码提交从 <code>%[2]s</code>合并至 <code>%[3]s</code>",
|
||||
"repo.pulls.change_target_branch_at": "将目标分支从 <b>%s</b> 更改为 <b>%s</b> %s",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "于 %s 将合并请求标记为草稿",
|
||||
"repo.pulls.marked_as_work_in_progress_at": "已将合并请求标记为进行中 %s",
|
||||
"repo.pulls.marked_as_ready_for_review_at": "已将合并请求标记为准备评审 %s",
|
||||
"repo.pulls.tab_conversation": "对话内容",
|
||||
"repo.pulls.tab_commits": "代码提交",
|
||||
@@ -1799,8 +1799,9 @@
|
||||
"repo.pulls.is_closed": "合并请求已关闭。",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">标题以 <strong>%s</strong> 开头</a>以免合并请求意外合并。",
|
||||
"repo.pulls.cannot_merge_work_in_progress": "此合并请求仍在进行中",
|
||||
"repo.pulls.convert_to_draft": "尚未完成?转为草稿",
|
||||
"repo.pulls.ready_for_review": "标记为可评审",
|
||||
"repo.pulls.still_in_progress": "仍在进行中?",
|
||||
"repo.pulls.add_prefix": "添加 <strong>%s</strong> 前缀",
|
||||
"repo.pulls.remove_prefix": "删除 <strong>%s</strong> 前缀",
|
||||
"repo.pulls.data_broken": "此合并请求因为派生仓库信息缺失而中断。",
|
||||
"repo.pulls.files_conflicted": "此分支存在必须解决的冲突",
|
||||
"repo.pulls.is_checking": "正在检查能否自动合并……",
|
||||
@@ -1809,7 +1810,6 @@
|
||||
"repo.pulls.is_empty": "此分支上的更改已经在目标分支上。这将是一个空提交。",
|
||||
"repo.pulls.is_unrelated": "此分支与目标分支没有共同的提交历史。",
|
||||
"repo.pulls.merging_is_blocked": "合并已被阻止",
|
||||
"repo.pulls.merging_is_blocked_desc": "尚未满足合并条件,无法合并",
|
||||
"repo.pulls.review_required": "需要评审",
|
||||
"repo.pulls.changes_approved": "更改已获批准",
|
||||
"repo.pulls.approvals_granted_1": "具有写入权限的评审人已给出 %d 份批准。",
|
||||
@@ -1842,7 +1842,7 @@
|
||||
"repo.pulls.wrong_commit_id": "提交 id 必须在目标分支上",
|
||||
"repo.pulls.no_merge_desc": "由于未启用合并选项,此合并请求无法合并。",
|
||||
"repo.pulls.no_merge_helper": "在仓库设置中启用合并选项或者手工合并请求。",
|
||||
"repo.pulls.no_merge_wip": "合并请求处于草稿状态,无法合并。",
|
||||
"repo.pulls.no_merge_wip": "这个合并请求无法合并,因为被标记为尚未完成的工作。",
|
||||
"repo.pulls.no_merge_not_ready": "此合并请求尚未准备好合并,请检查审核状态和状态检查。",
|
||||
"repo.pulls.no_merge_access": "您无权合并此合并请求。",
|
||||
"repo.pulls.merge_pull_request": "创建合并提交",
|
||||
@@ -3102,6 +3102,8 @@
|
||||
"admin.dashboard.cron.finished": "计划任务:%[1]s 已完成",
|
||||
"admin.dashboard.delete_inactive_accounts": "删除所有未激活的帐户",
|
||||
"admin.dashboard.delete_inactive_accounts.started": "删除所有未激活的账号任务已启动。",
|
||||
"admin.dashboard.delete_repo_archives": "删除所有仓库的归档文件(ZIP、TAR.GZ 等)",
|
||||
"admin.dashboard.delete_repo_archives.started": "删除所有仓库存档任务已启动。",
|
||||
"admin.dashboard.delete_missing_repos": "删除所有丢失 Git 文件的仓库",
|
||||
"admin.dashboard.delete_missing_repos.started": "删除所有丢失 Git 文件的仓库任务已启动。",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "删除生成的仓库头像",
|
||||
@@ -3110,6 +3112,7 @@
|
||||
"admin.dashboard.update_mirrors": "更新镜像仓库",
|
||||
"admin.dashboard.repo_health_check": "健康检查所有仓库",
|
||||
"admin.dashboard.check_repo_stats": "检查所有仓库统计",
|
||||
"admin.dashboard.archive_cleanup": "删除旧的仓库存档",
|
||||
"admin.dashboard.deleted_branches_cleanup": "清理已删除的分支",
|
||||
"admin.dashboard.update_migration_poster_id": "更新迁移的发表者ID",
|
||||
"admin.dashboard.git_gc_repos": "对仓库进行垃圾回收",
|
||||
@@ -3423,6 +3426,7 @@
|
||||
"admin.config.lfs_root_path": "LFS根目录",
|
||||
"admin.config.log_file_root_path": "日志路径",
|
||||
"admin.config.script_type": "脚本类型",
|
||||
"admin.config.reverse_auth_user": "反向代理认证用户请求头",
|
||||
"admin.config.ssh_config": "SSH 配置",
|
||||
"admin.config.ssh_enabled": "启用",
|
||||
"admin.config.ssh_start_builtin_server": "使用内置 SSH 服务器",
|
||||
|
||||
@@ -1467,6 +1467,9 @@
|
||||
"repo.pulls.merged_info_text": "現在可以刪除分支 %s。",
|
||||
"repo.pulls.is_closed": "合併請求已被關閉。",
|
||||
"repo.pulls.title_wip_desc": "<a href=\"#\">標題用 <strong>%s</strong> 開頭</a>以避免意外地合併此合併請求。",
|
||||
"repo.pulls.still_in_progress": "還在進行中嗎?",
|
||||
"repo.pulls.add_prefix": "加入 <strong>%s</strong> 前綴",
|
||||
"repo.pulls.remove_prefix": "移除 <strong>%s</strong> 前綴",
|
||||
"repo.pulls.data_broken": "此合併請求已損毀,因為遺失 Fork 資訊。",
|
||||
"repo.pulls.is_ancestor": "這個分支已經合併到目標分支上。沒有可以合併的內容。",
|
||||
"repo.pulls.is_empty": "在這個分支上的更動都已經套用在目標分支上。這將會產生一個空的提交。",
|
||||
@@ -1484,6 +1487,7 @@
|
||||
"repo.pulls.waiting_count_n": "%d 等待審核",
|
||||
"repo.pulls.no_merge_desc": "無法進行合併,因為所有儲存庫的合併選項已被停用。",
|
||||
"repo.pulls.no_merge_helper": "在儲存庫設定啟用合併選項或手動合併該合併請求。",
|
||||
"repo.pulls.no_merge_wip": "無法進行合併,因為它被標記為還在進行中。",
|
||||
"repo.pulls.no_merge_access": "您未被授權合併此合併請求。",
|
||||
"repo.pulls.merge_pull_request": "建立合併提交",
|
||||
"repo.pulls.squash_merge_pull_request": "建立 Squash 提交",
|
||||
@@ -2350,6 +2354,7 @@
|
||||
"admin.dashboard.cron.error": "Cron 中的錯誤: %s: %[3]s",
|
||||
"admin.dashboard.cron.finished": "Cron: %[1]s 已完成",
|
||||
"admin.dashboard.delete_inactive_accounts": "刪除所有未啟用帳戶",
|
||||
"admin.dashboard.delete_repo_archives": "刪除所有儲存庫存檔 (ZIP, TAR.GZ, etc..)",
|
||||
"admin.dashboard.delete_missing_repos": "刪除所有遺失 Git 檔案的儲存庫",
|
||||
"admin.dashboard.delete_generated_repository_avatars": "刪除產生的儲存庫大頭貼",
|
||||
"admin.dashboard.sync_repo_branches": "從 Git 資料同步遺漏的分支到資料庫",
|
||||
@@ -2357,6 +2362,7 @@
|
||||
"admin.dashboard.update_mirrors": "更新鏡像",
|
||||
"admin.dashboard.repo_health_check": "對所有儲存庫進行健康檢查",
|
||||
"admin.dashboard.check_repo_stats": "檢查所有儲存庫的統計資料",
|
||||
"admin.dashboard.archive_cleanup": "刪除舊的儲存庫存檔",
|
||||
"admin.dashboard.update_migration_poster_id": "更新遷移發布者 ID",
|
||||
"admin.dashboard.reinit_missing_repos": "重新初始化所有記錄存在但遺失的 Git 儲存庫",
|
||||
"admin.dashboard.sync_external_users": "同步外部使用者資料",
|
||||
@@ -2621,6 +2627,7 @@
|
||||
"admin.config.lfs_root_path": "LFS 根目錄",
|
||||
"admin.config.log_file_root_path": "日誌路徑",
|
||||
"admin.config.script_type": "腳本類型",
|
||||
"admin.config.reverse_auth_user": "反向代理認證",
|
||||
"admin.config.ssh_config": "SSH 組態",
|
||||
"admin.config.ssh_enabled": "已啟用",
|
||||
"admin.config.ssh_start_builtin_server": "使用內建的伺服器",
|
||||
|
||||
@@ -6,16 +6,13 @@ package actions
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
audit_model "gitea.dev/models/audit"
|
||||
"gitea.dev/modules/web"
|
||||
"gitea.dev/routers/api/actions/ping"
|
||||
"gitea.dev/routers/api/actions/runner"
|
||||
"gitea.dev/routers/common"
|
||||
)
|
||||
|
||||
func Routes(prefix string) *web.Router {
|
||||
m := web.NewRouter()
|
||||
m.AfterRouting(common.AuditOrigin(audit_model.OriginAPI))
|
||||
m.Group("/oidc", func() {
|
||||
m.Get("/.well-known/openid-configuration", oidcConfiguration)
|
||||
m.Get("/jwks", oidcKeys)
|
||||
|
||||
@@ -20,7 +20,6 @@ import (
|
||||
"gitea.dev/modules/log"
|
||||
"gitea.dev/modules/util"
|
||||
actions_service "gitea.dev/services/actions"
|
||||
"gitea.dev/services/audit"
|
||||
|
||||
"connectrpc.com/connect/v2"
|
||||
"connectrpc.com/connect/v2/connecthttp"
|
||||
@@ -93,9 +92,6 @@ func (s *Service) Register(
|
||||
if err := actions_model.CreateRunner(ctx, runner); err != nil {
|
||||
return nil, errors.New("can't create new runner")
|
||||
}
|
||||
// the registration token authenticates the runner, no user is involved
|
||||
audit.RecordScopedByID(audit.WithDoer(ctx, user_model.NewActionsUser()), runner.OwnerID, runner.RepoID, audit.RunnerRegister,
|
||||
"runner", runner.Name, "runner_id", runner.ID, "version", runner.Version, "ephemeral", runner.Ephemeral)
|
||||
|
||||
res := &runnerv1.RegisterResponse{
|
||||
Runner: &runnerv1.Runner{
|
||||
|
||||
@@ -118,7 +118,7 @@ func DeleteRunner(ctx *context.APIContext, ownerID, repoID, runnerID int64) {
|
||||
ctx.APIErrorInternal(err)
|
||||
return
|
||||
}
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerRemove, "runner", runner.Name, "runner_id", runner.ID)
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerRemove, "runner", runner.Name)
|
||||
ctx.Status(http.StatusNoContent)
|
||||
}
|
||||
|
||||
@@ -134,14 +134,11 @@ func UpdateRunner(ctx *context.APIContext, ownerID, repoID, runnerID int64) {
|
||||
return
|
||||
}
|
||||
|
||||
changed, err := actions_model.SetRunnerDisabled(ctx, runner, *form.Disabled)
|
||||
if err != nil {
|
||||
if err := actions_model.SetRunnerDisabled(ctx, runner, *form.Disabled); err != nil {
|
||||
ctx.APIErrorInternal(err)
|
||||
return
|
||||
}
|
||||
if changed {
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerToggle(*form.Disabled), "runner", runner.Name, "runner_id", runner.ID)
|
||||
}
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerUpdate, "runner", runner.Name, "disabled", *form.Disabled)
|
||||
|
||||
GetRunner(ctx, ownerID, repoID, runnerID)
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ import (
|
||||
pull_service "gitea.dev/services/pull"
|
||||
release_service "gitea.dev/services/release"
|
||||
repo_service "gitea.dev/services/repository"
|
||||
"gitea.dev/services/repository/archiver"
|
||||
"gitea.dev/services/task"
|
||||
"gitea.dev/services/uinotification"
|
||||
user_service "gitea.dev/services/user"
|
||||
@@ -129,6 +130,7 @@ func InitWebInstalled(ctx context.Context) {
|
||||
mustInit(cache.Init)
|
||||
mustInit(feed_service.Init)
|
||||
mustInit(uinotification.Init)
|
||||
mustInitCtx(ctx, archiver.Init)
|
||||
|
||||
external.RegisterRenderers()
|
||||
markup.Init(markup_service.FormalRenderHelperFuncs())
|
||||
|
||||
@@ -349,6 +349,53 @@ func Download(ctx *context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
// InitiateDownload will enqueue an archival request, as needed. It may submit
|
||||
// a request that's already in-progress, but the archiver service will just
|
||||
// kind of drop it on the floor if this is the case.
|
||||
func InitiateDownload(ctx *context.Context) {
|
||||
if !checkDownloadTokenScope(ctx) {
|
||||
return
|
||||
}
|
||||
|
||||
paths := ctx.FormStrings("path")
|
||||
if setting.Repository.StreamArchives || len(paths) > 0 {
|
||||
ctx.JSON(http.StatusOK, map[string]any{
|
||||
"complete": true,
|
||||
})
|
||||
return
|
||||
}
|
||||
aReq, err := archiver_service.NewRequest(ctx, ctx.Repo.Repository, ctx.Repo.GitRepo, ctx.PathParam("*"), paths)
|
||||
if err != nil {
|
||||
ctx.HTTPError(http.StatusBadRequest, "invalid archive request")
|
||||
return
|
||||
}
|
||||
if aReq == nil {
|
||||
ctx.HTTPError(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
|
||||
archiver, err := repo_model.GetRepoArchiver(ctx, aReq.Repo.ID, aReq.Type, aReq.CommitID)
|
||||
if err != nil {
|
||||
ctx.ServerErrorAuto(err)
|
||||
return
|
||||
}
|
||||
if archiver == nil || archiver.Status != repo_model.ArchiverReady {
|
||||
if err := archiver_service.StartArchive(aReq); err != nil {
|
||||
ctx.ServerErrorAuto(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var completed bool
|
||||
if archiver != nil && archiver.Status == repo_model.ArchiverReady {
|
||||
completed = true
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, map[string]any{
|
||||
"complete": completed,
|
||||
})
|
||||
}
|
||||
|
||||
// SearchRepo repositories via options
|
||||
func SearchRepo(ctx *context.Context) {
|
||||
page := ctx.FormInt("page")
|
||||
|
||||
@@ -179,7 +179,6 @@ func RunnersEditPost(ctx *context.Context) {
|
||||
}
|
||||
|
||||
form := web.GetForm[*forms.EditRunnerForm](ctx)
|
||||
descriptionChanged := runner.Description != form.Description
|
||||
runner.Description = form.Description
|
||||
|
||||
err = actions_model.UpdateRunner(ctx, runner, "description")
|
||||
@@ -189,9 +188,6 @@ func RunnersEditPost(ctx *context.Context) {
|
||||
ctx.Redirect(redirectTo)
|
||||
return
|
||||
}
|
||||
if descriptionChanged {
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerUpdate, "runner", runner.Name, "runner_id", runner.ID)
|
||||
}
|
||||
|
||||
log.Debug("RunnerDetailsEditPost success: %s", ctx.Req.URL)
|
||||
|
||||
@@ -240,7 +236,7 @@ func RunnerDeletePost(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerRemove, "runner", runner.Name, "runner_id", runner.ID)
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerRemove, "runner", runner.Name)
|
||||
log.Info("DeleteRunnerPost success: %s", ctx.Req.URL)
|
||||
|
||||
ctx.Flash.Success(ctx.Tr("actions.runners.delete_runner_success"))
|
||||
@@ -273,16 +269,13 @@ func RunnerUpdatePost(ctx *context.Context) {
|
||||
failedKey = "actions.runners.disable_runner_failed"
|
||||
}
|
||||
|
||||
changed, err := actions_model.SetRunnerDisabled(ctx, runner, isDisabled.Value())
|
||||
if err != nil {
|
||||
if err := actions_model.SetRunnerDisabled(ctx, runner, isDisabled.Value()); err != nil {
|
||||
log.Warn("RunnerUpdatePost.SetRunnerDisabled failed: %v, url: %s", err, ctx.Req.URL)
|
||||
ctx.Flash.Error(ctx.Tr(failedKey))
|
||||
ctx.JSONRedirect("")
|
||||
return
|
||||
}
|
||||
if changed {
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerToggle(isDisabled.Value()), "runner", runner.Name, "runner_id", runner.ID)
|
||||
}
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerUpdate, "runner", runner.Name, "disabled", isDisabled.Value())
|
||||
|
||||
ctx.Flash.Success(ctx.Tr(successKey))
|
||||
ctx.JSONRedirect("")
|
||||
@@ -331,22 +324,17 @@ func RunnerBulkActionPost(ctx *context.Context) {
|
||||
}
|
||||
|
||||
deleting, disabled := action == "delete", action == "disable"
|
||||
var changedRunners []*actions_model.ActionRunner
|
||||
if err := db.WithTx(ctx, func(txCtx stdctx.Context) error {
|
||||
for _, runner := range runners {
|
||||
changed := true
|
||||
var err error
|
||||
if deleting {
|
||||
err = actions_model.DeleteRunner(txCtx, runner.ID)
|
||||
} else {
|
||||
changed, err = actions_model.SetRunnerDisabled(txCtx, runner, disabled)
|
||||
err = actions_model.SetRunnerDisabled(txCtx, runner, disabled)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if changed {
|
||||
changedRunners = append(changedRunners, runner)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}); err != nil {
|
||||
@@ -356,11 +344,11 @@ func RunnerBulkActionPost(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
for _, runner := range changedRunners {
|
||||
for _, runner := range runners {
|
||||
if deleting {
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerRemove, "runner", runner.Name, "runner_id", runner.ID)
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerRemove, "runner", runner.Name)
|
||||
} else {
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerToggle(disabled), "runner", runner.Name, "runner_id", runner.ID)
|
||||
audit.RecordScopedByID(ctx, runner.OwnerID, runner.RepoID, audit.RunnerUpdate, "runner", runner.Name, "disabled", disabled)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1654,6 +1654,7 @@ func registerWebRoutes(m *web.Router, webAuth *AuthMiddleware) {
|
||||
|
||||
m.Group("/archive", func() {
|
||||
m.Get("/*", repo.Download)
|
||||
m.Post("/*", repo.InitiateDownload)
|
||||
}, webAuth.AllowBasic, webAuth.AllowOAuth2, repo.MustBeNotEmpty, dlSourceEnabled)
|
||||
|
||||
m.Group("/branches", func() {
|
||||
|
||||
@@ -95,24 +95,6 @@ var (
|
||||
User: audit_model.UserRunnerUpdate,
|
||||
System: audit_model.SystemRunnerUpdate,
|
||||
}
|
||||
RunnerRegister = ScopedActions{
|
||||
Repo: audit_model.RepositoryRunnerRegister,
|
||||
Org: audit_model.OrganizationRunnerRegister,
|
||||
User: audit_model.UserRunnerRegister,
|
||||
System: audit_model.SystemRunnerRegister,
|
||||
}
|
||||
RunnerEnable = ScopedActions{
|
||||
Repo: audit_model.RepositoryRunnerEnable,
|
||||
Org: audit_model.OrganizationRunnerEnable,
|
||||
User: audit_model.UserRunnerEnable,
|
||||
System: audit_model.SystemRunnerEnable,
|
||||
}
|
||||
RunnerDisable = ScopedActions{
|
||||
Repo: audit_model.RepositoryRunnerDisable,
|
||||
Org: audit_model.OrganizationRunnerDisable,
|
||||
User: audit_model.UserRunnerDisable,
|
||||
System: audit_model.SystemRunnerDisable,
|
||||
}
|
||||
RunnerRemove = ScopedActions{
|
||||
Repo: audit_model.RepositoryRunnerRemove,
|
||||
Org: audit_model.OrganizationRunnerRemove,
|
||||
@@ -145,14 +127,6 @@ var (
|
||||
}
|
||||
)
|
||||
|
||||
// RunnerToggle returns the actions for enabling or disabling a runner.
|
||||
func RunnerToggle(disabled bool) ScopedActions {
|
||||
if disabled {
|
||||
return RunnerDisable
|
||||
}
|
||||
return RunnerEnable
|
||||
}
|
||||
|
||||
// resolveScope maps an (owner, repo) pair to the scoped action and audit scope.
|
||||
// The rules cover every multi-scope resource (secrets, OAuth2 apps, webhooks):
|
||||
// a repo wins when set, a nil owner means the instance, otherwise the owner's
|
||||
|
||||
@@ -19,6 +19,7 @@ import (
|
||||
mirror_service "gitea.dev/services/mirror"
|
||||
packages_cleanup_service "gitea.dev/services/packages/cleanup"
|
||||
repo_service "gitea.dev/services/repository"
|
||||
archiver_service "gitea.dev/services/repository/archiver"
|
||||
)
|
||||
|
||||
func registerUpdateMirrorTask() {
|
||||
@@ -71,6 +72,19 @@ func registerCheckRepoStats() {
|
||||
})
|
||||
}
|
||||
|
||||
func registerArchiveCleanup() {
|
||||
RegisterTaskFatal("archive_cleanup", &OlderThanConfig{
|
||||
BaseConfig: BaseConfig{
|
||||
Enabled: true,
|
||||
RunAtStart: true,
|
||||
Schedule: "@midnight",
|
||||
},
|
||||
OlderThan: 24 * time.Hour,
|
||||
}, func(ctx context.Context, _ *user_model.User, config *OlderThanConfig) error {
|
||||
return archiver_service.DeleteOldRepositoryArchives(ctx, config.OlderThan)
|
||||
})
|
||||
}
|
||||
|
||||
func registerSyncExternalUsers() {
|
||||
RegisterTaskFatal("sync_external_users", &UpdateExistingConfig{
|
||||
BaseConfig: BaseConfig{
|
||||
@@ -152,6 +166,7 @@ func initBasicTasks() {
|
||||
}
|
||||
registerRepoHealthCheck()
|
||||
registerCheckRepoStats()
|
||||
registerArchiveCleanup()
|
||||
registerSyncExternalUsers()
|
||||
registerDeletedBranchesCleanup()
|
||||
if !setting.Repository.DisableMigrations {
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
asymkey_service "gitea.dev/services/asymkey"
|
||||
"gitea.dev/services/audit"
|
||||
repo_service "gitea.dev/services/repository"
|
||||
archiver_service "gitea.dev/services/repository/archiver"
|
||||
user_service "gitea.dev/services/user"
|
||||
)
|
||||
|
||||
@@ -34,6 +35,16 @@ func registerDeleteInactiveUsers() {
|
||||
})
|
||||
}
|
||||
|
||||
func registerDeleteRepositoryArchives() {
|
||||
RegisterTaskFatal("delete_repo_archives", &BaseConfig{
|
||||
Enabled: false,
|
||||
RunAtStart: false,
|
||||
Schedule: "@annually",
|
||||
}, func(ctx context.Context, _ *user_model.User, _ *BaseConfig) error {
|
||||
return archiver_service.DeleteRepositoryArchives(ctx)
|
||||
})
|
||||
}
|
||||
|
||||
func registerGarbageCollectRepositories() {
|
||||
type RepoHealthCheckConfig struct {
|
||||
BaseConfig
|
||||
@@ -228,6 +239,7 @@ func registerRebuildIssueIndexer() {
|
||||
|
||||
func initExtendedTasks() {
|
||||
registerDeleteInactiveUsers()
|
||||
registerDeleteRepositoryArchives()
|
||||
registerGarbageCollectRepositories()
|
||||
registerRewriteAllPublicKeys()
|
||||
registerRewriteAllPrincipalKeys()
|
||||
|
||||
@@ -5,6 +5,7 @@ package doctor
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"io/fs"
|
||||
"strings"
|
||||
|
||||
@@ -78,12 +79,13 @@ func commonCheckStorage(logger log.Logger, autofix bool, opts *commonStorageChec
|
||||
}
|
||||
|
||||
type checkStorageOptions struct {
|
||||
All bool
|
||||
Attachments bool
|
||||
LFS bool
|
||||
Avatars bool
|
||||
RepoAvatars bool
|
||||
Packages bool
|
||||
All bool
|
||||
Attachments bool
|
||||
LFS bool
|
||||
Avatars bool
|
||||
RepoAvatars bool
|
||||
RepoArchives bool
|
||||
Packages bool
|
||||
}
|
||||
|
||||
// checkStorage will return a doctor check function to check the requested storage types for "orphaned" stored object/files and optionally delete them
|
||||
@@ -157,6 +159,24 @@ func checkStorage(opts *checkStorageOptions) func(ctx context.Context, logger lo
|
||||
}
|
||||
}
|
||||
|
||||
if opts.RepoArchives || opts.All {
|
||||
if err := commonCheckStorage(logger, autofix,
|
||||
&commonStorageCheckOptions{
|
||||
storer: storage.RepoArchives,
|
||||
isOrphaned: func(path string, obj storage.Object, stat fs.FileInfo) (bool, error) {
|
||||
exists, err := repo.ExistsRepoArchiverWithStoragePath(ctx, path)
|
||||
if err == nil || errors.Is(err, util.ErrInvalidArgument) {
|
||||
// invalid arguments mean that the object is not a valid repo archiver and it should be removed
|
||||
return !exists, nil
|
||||
}
|
||||
return !exists, err
|
||||
},
|
||||
name: "repo archive",
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if opts.Packages || opts.All {
|
||||
if !setting.Packages.Enabled {
|
||||
logger.Info("Packages isn't enabled (skipped)")
|
||||
@@ -228,6 +248,16 @@ func init() {
|
||||
Priority: 1,
|
||||
})
|
||||
|
||||
Register(&Check{
|
||||
Title: "Check if there are orphaned archives in storage",
|
||||
Name: "storage-archives",
|
||||
IsDefault: false,
|
||||
Run: checkStorage(&checkStorageOptions{RepoArchives: true}),
|
||||
AbortIfFailed: false,
|
||||
SkipDatabaseInitialization: false,
|
||||
Priority: 1,
|
||||
})
|
||||
|
||||
Register(&Check{
|
||||
Title: "Check if there are orphaned package blobs in storage",
|
||||
Name: "storage-packages",
|
||||
|
||||
@@ -5,16 +5,25 @@ package archiver
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gitea.dev/models/db"
|
||||
repo_model "gitea.dev/models/repo"
|
||||
"gitea.dev/modules/git"
|
||||
"gitea.dev/modules/git/gitcmd"
|
||||
"gitea.dev/modules/graceful"
|
||||
"gitea.dev/modules/httpcache"
|
||||
"gitea.dev/modules/httplib"
|
||||
"gitea.dev/modules/log"
|
||||
"gitea.dev/modules/process"
|
||||
"gitea.dev/modules/queue"
|
||||
"gitea.dev/modules/setting"
|
||||
"gitea.dev/modules/storage"
|
||||
"gitea.dev/modules/util"
|
||||
gitea_context "gitea.dev/services/context"
|
||||
)
|
||||
@@ -33,7 +42,41 @@ type ArchiveRequest struct {
|
||||
archiveRefShortName string // the ref short name to download the archive, for example: "master", "v1.0.0", "commit id"
|
||||
}
|
||||
|
||||
// NewRequest creates an archival request, based on the URI.
|
||||
type archiveQueueItem struct {
|
||||
RepoID int64 `json:"RepoID"`
|
||||
Type repo_model.ArchiveType `json:"Type"`
|
||||
CommitID string `json:"CommitID"`
|
||||
Paths []string `json:"Paths,omitempty"`
|
||||
ArchiveRefShortName string `json:"ArchiveRefShortName,omitempty"`
|
||||
}
|
||||
|
||||
func (aReq *ArchiveRequest) toQueueItem() *archiveQueueItem {
|
||||
return &archiveQueueItem{
|
||||
RepoID: aReq.Repo.ID,
|
||||
Type: aReq.Type,
|
||||
CommitID: aReq.CommitID,
|
||||
Paths: aReq.Paths,
|
||||
ArchiveRefShortName: aReq.archiveRefShortName,
|
||||
}
|
||||
}
|
||||
|
||||
func (item *archiveQueueItem) toArchiveRequest(ctx context.Context) (*ArchiveRequest, error) {
|
||||
repo, err := repo_model.GetRepositoryByID(ctx, item.RepoID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &ArchiveRequest{
|
||||
Repo: repo,
|
||||
Type: item.Type,
|
||||
CommitID: item.CommitID,
|
||||
Paths: item.Paths,
|
||||
archiveRefShortName: item.ArchiveRefShortName,
|
||||
}, nil
|
||||
}
|
||||
|
||||
// NewRequest creates an archival request, based on the URI. The
|
||||
// resulting ArchiveRequest is suitable for being passed to Await()
|
||||
// if it's determined that the request still needs to be satisfied.
|
||||
func NewRequest(ctx context.Context, repo *repo_model.Repository, gitRepo *git.Repository, archiveRefExt string, paths []string) (*ArchiveRequest, error) {
|
||||
// here the archiveRefShortName is not a clear ref, it could be a tag, branch or commit id
|
||||
archiveRefShortName, archiveType := repo_model.SplitArchiveNameType(archiveRefExt)
|
||||
@@ -61,6 +104,49 @@ func (aReq *ArchiveRequest) GetArchiveName() string {
|
||||
return strings.ReplaceAll(aReq.archiveRefShortName, "/", "-") + "." + aReq.Type.String()
|
||||
}
|
||||
|
||||
// Await awaits the completion of an ArchiveRequest. If the archive has
|
||||
// already been prepared the method returns immediately. Otherwise, an archiver
|
||||
// process will be started and its completion awaited. On success the returned
|
||||
// RepoArchiver may be used to download the archive. Note that even if the
|
||||
// context is cancelled/times out a started archiver will still continue to run
|
||||
// in the background.
|
||||
func (aReq *ArchiveRequest) Await(ctx context.Context) (*repo_model.RepoArchiver, error) {
|
||||
archiver, err := repo_model.GetRepoArchiver(ctx, aReq.Repo.ID, aReq.Type, aReq.CommitID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("models.GetRepoArchiver: %w", err)
|
||||
}
|
||||
|
||||
if archiver != nil && archiver.Status == repo_model.ArchiverReady {
|
||||
// Archive already generated, we're done.
|
||||
return archiver, nil
|
||||
}
|
||||
|
||||
if err := StartArchive(aReq); err != nil {
|
||||
return nil, fmt.Errorf("archiver.StartArchive: %w", err)
|
||||
}
|
||||
|
||||
poll := time.NewTicker(time.Second * 1)
|
||||
defer poll.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-graceful.GetManager().HammerContext().Done():
|
||||
// System stopped.
|
||||
return nil, graceful.GetManager().HammerContext().Err()
|
||||
case <-ctx.Done():
|
||||
return nil, ctx.Err()
|
||||
case <-poll.C:
|
||||
archiver, err = repo_model.GetRepoArchiver(ctx, aReq.Repo.ID, aReq.Type, aReq.CommitID)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("repo_model.GetRepoArchiver: %w", err)
|
||||
}
|
||||
if archiver != nil && archiver.Status == repo_model.ArchiverReady {
|
||||
return archiver, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Stream satisfies the ArchiveRequest being passed in. Processing
|
||||
// will occur directly in this routine.
|
||||
func (aReq *ArchiveRequest) Stream(ctx context.Context, w io.Writer) error {
|
||||
@@ -83,6 +169,189 @@ func (aReq *ArchiveRequest) Stream(ctx context.Context, w io.Writer) error {
|
||||
)
|
||||
}
|
||||
|
||||
// doArchive satisfies the ArchiveRequest being passed in. Processing
|
||||
// will occur in a separate goroutine, as this phase may take a while to
|
||||
// complete. If the archive already exists, doArchive will not do
|
||||
// anything. In all cases, the caller should be examining the *ArchiveRequest
|
||||
// being returned for completion, as it may be different than the one they passed
|
||||
// in.
|
||||
func doArchive(ctx context.Context, r *ArchiveRequest) (*repo_model.RepoArchiver, error) {
|
||||
ctx, _, finished := process.GetManager().AddContext(ctx, fmt.Sprintf("ArchiveRequest[%s]: %s", r.Repo.FullName(), r.GetArchiveName()))
|
||||
defer finished()
|
||||
|
||||
archiver, err := repo_model.GetRepoArchiver(ctx, r.Repo.ID, r.Type, r.CommitID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if archiver != nil {
|
||||
// FIXME: If another process are generating it, we think it's not ready and just return
|
||||
// Or we should wait until the archive generated.
|
||||
if archiver.Status == repo_model.ArchiverGenerating {
|
||||
return nil, nil //nolint:nilnil // return nil because the archive is still being generated
|
||||
}
|
||||
} else {
|
||||
archiver = &repo_model.RepoArchiver{
|
||||
RepoID: r.Repo.ID,
|
||||
Type: r.Type,
|
||||
CommitID: r.CommitID,
|
||||
Status: repo_model.ArchiverGenerating,
|
||||
}
|
||||
if err := db.Insert(ctx, archiver); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
rPath := archiver.RelativePath()
|
||||
_, err = storage.RepoArchives.Stat(rPath)
|
||||
if err == nil {
|
||||
if archiver.Status == repo_model.ArchiverGenerating {
|
||||
archiver.Status = repo_model.ArchiverReady
|
||||
if err = repo_model.UpdateRepoArchiverStatus(ctx, archiver); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return archiver, nil
|
||||
}
|
||||
|
||||
if !errors.Is(err, os.ErrNotExist) {
|
||||
return nil, fmt.Errorf("unable to stat archive: %w", err)
|
||||
}
|
||||
|
||||
rd, w := io.Pipe()
|
||||
defer func() {
|
||||
_ = w.Close()
|
||||
_ = rd.Close()
|
||||
}()
|
||||
done := make(chan error, 1) // Ensure that there is some capacity which will ensure that the goroutine below can always finish
|
||||
|
||||
go func(done chan error, w *io.PipeWriter, archiveReq *ArchiveRequest) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
done <- fmt.Errorf("%v", r)
|
||||
}
|
||||
}()
|
||||
|
||||
err := archiveReq.Stream(ctx, w)
|
||||
_ = w.CloseWithError(err)
|
||||
done <- err
|
||||
}(done, w, r)
|
||||
|
||||
// TODO: add lfs data to zip
|
||||
// TODO: add submodule data to zip
|
||||
|
||||
if _, err := storage.RepoArchives.Save(rPath, rd, -1); err != nil {
|
||||
return nil, fmt.Errorf("unable to write archive: %w", err)
|
||||
}
|
||||
|
||||
err = <-done
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if archiver.Status == repo_model.ArchiverGenerating {
|
||||
archiver.Status = repo_model.ArchiverReady
|
||||
if err = repo_model.UpdateRepoArchiverStatus(ctx, archiver); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return archiver, nil
|
||||
}
|
||||
|
||||
var archiverQueue *queue.WorkerPoolQueue[*archiveQueueItem]
|
||||
|
||||
// Init initializes archiver
|
||||
func Init(ctx context.Context) error {
|
||||
handler := func(items ...*archiveQueueItem) []*archiveQueueItem {
|
||||
for _, item := range items {
|
||||
log.Trace("ArchiverData Process: %#v", item)
|
||||
archiveReq, err := item.toArchiveRequest(ctx)
|
||||
if err != nil {
|
||||
log.Error("Archive repo %d: %v", item.RepoID, err)
|
||||
continue
|
||||
}
|
||||
if archiver, err := doArchive(ctx, archiveReq); err != nil {
|
||||
log.Error("Archive %v failed: %v", archiveReq, err)
|
||||
} else {
|
||||
log.Trace("ArchiverData Success: %#v", archiver)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
archiverQueue = queue.CreateUniqueQueue(graceful.GetManager().ShutdownContext(), "repo-archive", handler)
|
||||
if archiverQueue == nil {
|
||||
return errors.New("unable to create repo-archive queue")
|
||||
}
|
||||
go graceful.GetManager().RunWithCancel(archiverQueue)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// StartArchive push the archive request to the queue
|
||||
func StartArchive(request *ArchiveRequest) error {
|
||||
item := request.toQueueItem()
|
||||
has, err := archiverQueue.Has(item)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if has {
|
||||
return nil
|
||||
}
|
||||
return archiverQueue.Push(item)
|
||||
}
|
||||
|
||||
func deleteOldRepoArchiver(ctx context.Context, archiver *repo_model.RepoArchiver) error {
|
||||
if _, err := db.DeleteByID[repo_model.RepoArchiver](ctx, archiver.ID); err != nil {
|
||||
return err
|
||||
}
|
||||
p := archiver.RelativePath()
|
||||
if err := storage.RepoArchives.Delete(p); err != nil {
|
||||
log.Error("delete repo archive file failed: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeleteOldRepositoryArchives deletes old repository archives.
|
||||
func DeleteOldRepositoryArchives(ctx context.Context, olderThan time.Duration) error {
|
||||
log.Trace("Doing: ArchiveCleanup")
|
||||
|
||||
for {
|
||||
archivers, err := db.Find[repo_model.RepoArchiver](ctx, repo_model.FindRepoArchiversOption{
|
||||
ListOptions: db.ListOptions{
|
||||
PageSize: 100,
|
||||
Page: 1,
|
||||
},
|
||||
OlderThan: olderThan,
|
||||
})
|
||||
if err != nil {
|
||||
log.Trace("Error: ArchiveClean: %v", err)
|
||||
return err
|
||||
}
|
||||
|
||||
for _, archiver := range archivers {
|
||||
if err := deleteOldRepoArchiver(ctx, archiver); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if len(archivers) < 100 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
log.Trace("Finished: ArchiveCleanup")
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeleteRepositoryArchives deletes all repositories' archives.
|
||||
func DeleteRepositoryArchives(ctx context.Context) error {
|
||||
if err := repo_model.DeleteAllRepoArchives(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
return storage.Clean(storage.RepoArchives)
|
||||
}
|
||||
|
||||
func ServeRepoArchive(ctx *gitea_context.Base, archiveReq *ArchiveRequest) error {
|
||||
// Add nix format link header so tarballs lock correctly:
|
||||
// https://github.com/nixos/nix/blob/56763ff918eb308db23080e560ed2ea3e00c80a7/doc/manual/src/protocols/tarball-fetcher.md
|
||||
@@ -94,19 +363,48 @@ func ServeRepoArchive(ctx *gitea_context.Base, archiveReq *ArchiveRequest) error
|
||||
))
|
||||
downloadName := archiveReq.Repo.Name + "-" + archiveReq.GetArchiveName()
|
||||
|
||||
// Use weak ETag because the bytes also depend on the git version, compression level and repo config
|
||||
etag := fmt.Sprintf(`W/"%s-%s-%t"`, archiveReq.CommitID, archiveReq.Type.String(), setting.Repository.PrefixArchiveFiles)
|
||||
if len(archiveReq.Paths) == 0 && httpcache.HandleGenericETagPrivateCache(ctx.Req, ctx.Resp, etag, nil) {
|
||||
if setting.Repository.StreamArchives || len(archiveReq.Paths) > 0 {
|
||||
// Use weak ETag because the bytes also depend on the git version, compression level and repo config
|
||||
etag := fmt.Sprintf(`W/"%s-%s-%t"`, archiveReq.CommitID, archiveReq.Type.String(), setting.Repository.PrefixArchiveFiles)
|
||||
if len(archiveReq.Paths) == 0 && httpcache.HandleGenericETagPrivateCache(ctx.Req, ctx.Resp, etag, nil) {
|
||||
return nil
|
||||
}
|
||||
// the header must be set before starting streaming even an error would occur,
|
||||
// because errors may happen in git command and such cases aren't in our control.
|
||||
httplib.ServeSetHeaders(ctx.Resp, httplib.ServeHeaderOptions{Filename: downloadName})
|
||||
if err := archiveReq.Stream(ctx, ctx.Resp); err != nil && !ctx.Written() {
|
||||
if gitcmd.IsStderr(err, gitcmd.StderrPathSpec) || gitcmd.IsStderr(err, gitcmd.StderrNotTreeObject) {
|
||||
return util.NewInvalidArgumentErrorf("path doesn't exist or is invalid")
|
||||
}
|
||||
return fmt.Errorf("archive repo %s: failed to stream: %w", archiveReq.Repo.FullName(), err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
// the header must be set before starting streaming even an error would occur,
|
||||
// because errors may happen in git command and such cases aren't in our control.
|
||||
httplib.ServeSetHeaders(ctx.Resp, httplib.ServeHeaderOptions{Filename: downloadName})
|
||||
if err := archiveReq.Stream(ctx, ctx.Resp); err != nil && !ctx.Written() {
|
||||
if gitcmd.IsStderr(err, gitcmd.StderrPathSpec) || gitcmd.IsStderr(err, gitcmd.StderrNotTreeObject) {
|
||||
return util.NewInvalidArgumentErrorf("path doesn't exist or is invalid")
|
||||
}
|
||||
return fmt.Errorf("ServeRepoArchive: archive repo %s: failed to stream: %w", archiveReq.Repo.FullName(), err)
|
||||
|
||||
archiver, err := archiveReq.Await(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("archive repo %s: failed to await: %w", archiveReq.Repo.FullName(), err)
|
||||
}
|
||||
|
||||
rPath := archiver.RelativePath()
|
||||
if setting.RepoArchive.Storage.ServeDirect() {
|
||||
// If we have a signed url (S3, object storage), redirect to this directly.
|
||||
u, err := storage.RepoArchives.ServeDirectURL(rPath, downloadName, ctx.Req.Method, nil)
|
||||
if u != nil && err == nil {
|
||||
ctx.Redirect(u.String())
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
fr, err := storage.RepoArchives.Open(rPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("archive repo %s: failed to open archive file: %w", archiveReq.Repo.FullName(), err)
|
||||
}
|
||||
defer fr.Close()
|
||||
|
||||
ctx.ServeContent(fr, gitea_context.ServeHeaderOptions{
|
||||
Filename: downloadName,
|
||||
LastModified: archiver.CreatedUnix.AsLocalTime(),
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
package archiver
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
repo_model "gitea.dev/models/repo"
|
||||
"gitea.dev/models/unittest"
|
||||
"gitea.dev/modules/json"
|
||||
"gitea.dev/modules/util"
|
||||
"gitea.dev/services/contexttest"
|
||||
|
||||
@@ -21,6 +22,22 @@ func TestMain(m *testing.M) {
|
||||
unittest.MainTest(m)
|
||||
}
|
||||
|
||||
func TestArchiveQueueItemJSON(t *testing.T) {
|
||||
orig := &archiveQueueItem{
|
||||
RepoID: 7,
|
||||
Type: repo_model.ArchiveZip,
|
||||
CommitID: "abc123",
|
||||
Paths: []string{"agents"},
|
||||
ArchiveRefShortName: "main",
|
||||
}
|
||||
bs, err := json.Marshal(orig)
|
||||
require.NoError(t, err)
|
||||
|
||||
var decoded archiveQueueItem
|
||||
require.NoError(t, json.Unmarshal(bs, &decoded))
|
||||
assert.Equal(t, *orig, decoded)
|
||||
}
|
||||
|
||||
func TestArchive_Basic(t *testing.T) {
|
||||
assert.NoError(t, unittest.PrepareTestDatabase())
|
||||
|
||||
@@ -75,11 +92,49 @@ func TestArchive_Basic(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, secondReq)
|
||||
|
||||
for _, request := range []*ArchiveRequest{zipReq, tgzReq, secondReq} {
|
||||
var archive bytes.Buffer
|
||||
require.NoError(t, request.Stream(ctx, &archive))
|
||||
assert.Positive(t, archive.Len())
|
||||
}
|
||||
inFlight := make([]*ArchiveRequest, 3)
|
||||
inFlight[0] = zipReq
|
||||
inFlight[1] = tgzReq
|
||||
inFlight[2] = secondReq
|
||||
|
||||
doArchive(t.Context(), zipReq)
|
||||
doArchive(t.Context(), tgzReq)
|
||||
doArchive(t.Context(), secondReq)
|
||||
|
||||
// Make sure sending an unprocessed request through doesn't affect the queue
|
||||
// count.
|
||||
doArchive(t.Context(), zipReq)
|
||||
|
||||
zipReq2, err := NewRequest(ctx, ctx.Repo.Repository, ctx.Repo.GitRepo, firstCommit+".zip", nil)
|
||||
assert.NoError(t, err)
|
||||
// This zipReq should match what's sitting in the queue, as we haven't
|
||||
// let it release yet. From the consumer's point of view, this looks like
|
||||
// a long-running archive task.
|
||||
assert.Equal(t, zipReq, zipReq2)
|
||||
|
||||
// We still have the other three stalled at completion, waiting to remove
|
||||
// from archiveInProgress. Try to submit this new one before its
|
||||
// predecessor has cleared out of the queue.
|
||||
doArchive(t.Context(), zipReq2)
|
||||
|
||||
// Now we'll submit a request and TimedWaitForCompletion twice, before and
|
||||
// after we release it. We should trigger both the timeout and non-timeout
|
||||
// cases.
|
||||
timedReq, err := NewRequest(ctx, ctx.Repo.Repository, ctx.Repo.GitRepo, secondCommit+".tar.gz", nil)
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, timedReq)
|
||||
doArchive(t.Context(), timedReq)
|
||||
|
||||
zipReq2, err = NewRequest(ctx, ctx.Repo.Repository, ctx.Repo.GitRepo, firstCommit+".zip", nil)
|
||||
assert.NoError(t, err)
|
||||
// Now, we're guaranteed to have released the original zipReq from the queue.
|
||||
// Ensure that we don't get handed back the released entry somehow, but they
|
||||
// should remain functionally equivalent in all fields. The exception here
|
||||
// is zipReq.cchan, which will be non-nil because it's a completed request.
|
||||
// It's fine to go ahead and set it to nil now.
|
||||
|
||||
assert.Equal(t, zipReq, zipReq2)
|
||||
assert.NotSame(t, zipReq, zipReq2)
|
||||
|
||||
// Same commit, different compression formats should have different names.
|
||||
// Ideally, the extension would match what we originally requested.
|
||||
|
||||
@@ -268,6 +268,21 @@ func DeleteRepositoryDirectly(ctx context.Context, repoID int64, ignoreOrgTeams
|
||||
return err
|
||||
}
|
||||
|
||||
// Remove archives
|
||||
var archives []*repo_model.RepoArchiver
|
||||
if err = sess.Where("repo_id=?", repoID).Find(&archives); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
archivePaths := make([]string, 0, len(archives))
|
||||
for _, v := range archives {
|
||||
archivePaths = append(archivePaths, v.RelativePath())
|
||||
}
|
||||
|
||||
if _, err := db.DeleteByBean(ctx, &repo_model.RepoArchiver{RepoID: repoID}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if repo.NumForks > 0 {
|
||||
if _, err = sess.Exec("UPDATE `repository` SET fork_id=0,is_fork=? WHERE fork_id=?", false, repo.ID); err != nil {
|
||||
log.Error("reset 'fork_id' and 'is_fork': %v", err)
|
||||
@@ -330,6 +345,11 @@ func DeleteRepositoryDirectly(ctx context.Context, repoID int64, ignoreOrgTeams
|
||||
}
|
||||
}
|
||||
|
||||
// Remove archives
|
||||
for _, archive := range archivePaths {
|
||||
system_model.RemoveStorageWithNotice(ctx, storage.RepoArchives, "Delete repo archive file", archive)
|
||||
}
|
||||
|
||||
// Remove lfs objects
|
||||
for _, lfsObj := range lfsPaths {
|
||||
system_model.RemoveStorageWithNotice(ctx, storage.LFS, "Delete orphaned LFS file", lfsObj)
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
<td>{{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}</td>
|
||||
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_inactive_accounts">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}}</td>
|
||||
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_repo_archives">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}}</td>
|
||||
<td class="tw-text-right"><button type="submit" class="ui primary button" name="op" value="delete_missing_repos">{{svg "octicon-play"}} {{ctx.Locale.Tr "admin.dashboard.operation_run"}}</button></td>
|
||||
|
||||
@@ -78,7 +78,6 @@
|
||||
<div class="required field">
|
||||
<label for="email">{{ctx.Locale.Tr "email"}}</label>
|
||||
<input id="email" name="email" type="email" value="{{.User.Email}}" required>
|
||||
<p class="help">{{ctx.Locale.Tr "admin.users.email_helper"}}</p>
|
||||
</div>
|
||||
{{if not .User.IsTypeBot}}
|
||||
<div class="js-local js-non-bot field {{if not (or .User.IsLocal .User.IsOAuth2)}}tw-hidden{{end}}">
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
<div class="ui dropdown btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.download" ($.DefaultBranchBranch.DBBranch.Name)}}">
|
||||
{{svg "octicon-download"}}
|
||||
<div class="menu">
|
||||
<a download class="item" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a>
|
||||
<a download class="item" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a>
|
||||
<a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a>
|
||||
<a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
@@ -179,8 +179,8 @@
|
||||
<div class="ui dropdown btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.download" (.DBBranch.Name)}}">
|
||||
{{svg "octicon-download"}}
|
||||
<div class="menu">
|
||||
<a download class="item" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .DBBranch.Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a>
|
||||
<a download class="item" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .DBBranch.Name}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a>
|
||||
<a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .DBBranch.Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} ZIP</a>
|
||||
<a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .DBBranch.Name}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} TAR.GZ</a>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
@@ -47,9 +47,9 @@
|
||||
{{if $downloadArchiveLinkPrefix}}
|
||||
{{if $showOpenWithEditorApps}}<div class="divider"></div>{{end}}
|
||||
<div class="flex-items-block clone-panel-list">
|
||||
<a download class="item muted" href="{{$downloadArchiveLinkPrefix}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} {{ctx.Locale.Tr "repo.download_zip"}}</a>
|
||||
<a download class="item muted" href="{{$downloadArchiveLinkPrefix}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} {{ctx.Locale.Tr "repo.download_tar"}}</a>
|
||||
<a download class="item muted" href="{{$downloadArchiveLinkPrefix}}.bundle" rel="nofollow">{{svg "octicon-package"}} {{ctx.Locale.Tr "repo.download_bundle"}}</a>
|
||||
<a class="item muted archive-link" href="{{$downloadArchiveLinkPrefix}}.zip" rel="nofollow">{{svg "octicon-file-zip"}} {{ctx.Locale.Tr "repo.download_zip"}}</a>
|
||||
<a class="item muted archive-link" href="{{$downloadArchiveLinkPrefix}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}} {{ctx.Locale.Tr "repo.download_tar"}}</a>
|
||||
<a class="item muted archive-link" href="{{$downloadArchiveLinkPrefix}}.bundle" rel="nofollow">{{svg "octicon-package"}} {{ctx.Locale.Tr "repo.download_bundle"}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
@@ -108,12 +108,12 @@
|
||||
{{end}}
|
||||
{{if $showArchives}}
|
||||
<div class="item">
|
||||
<a download href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow">
|
||||
<a class="archive-link" download href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow">
|
||||
<strong class="flex-text-inline">{{svg "octicon-file-zip" 16 "tw-text-text-light-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)</strong>
|
||||
</a>
|
||||
</div>
|
||||
<div class="item">
|
||||
<a download href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">
|
||||
<a class="archive-link" download href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">
|
||||
<strong class="flex-text-inline">{{svg "octicon-file-zip" 16 "tw-text-text-light-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
<a class="flex-text-inline tw-font-mono" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit"}}{{ShortSha .Sha1}}</a>
|
||||
|
||||
{{if not $.DisableDownloadSourceArchives}}
|
||||
<a download class="flex-text-inline" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip"}}ZIP</a>
|
||||
<a download class="flex-text-inline" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}}TAR.GZ</a>
|
||||
<a class="archive-link flex-text-inline" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip"}}ZIP</a>
|
||||
<a class="archive-link flex-text-inline" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip"}}TAR.GZ</a>
|
||||
{{end}}
|
||||
|
||||
{{if (and $canReadReleases $.CanCreateRelease $release.IsTag)}}
|
||||
|
||||
@@ -97,8 +97,8 @@
|
||||
</a>
|
||||
{{if and (not $.DisableDownloadSourceArchives) $.RefFullName}}
|
||||
<div class="divider"></div>
|
||||
<a download class="item muted" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.zip?path={{.TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "ZIP"}}</a>
|
||||
<a download class="item muted" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.tar.gz?path={{.TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "TAR.GZ"}}</a>
|
||||
<a class="item muted archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.zip?path={{.TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "ZIP"}}</a>
|
||||
<a class="item muted archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefFullName.ShortName}}.tar.gz?path={{.TreePath}}" rel="nofollow">{{svg "octicon-file-zip"}}{{ctx.Locale.Tr "repo.download_directory_as" "TAR.GZ"}}</a>
|
||||
{{end}}
|
||||
{{if and .Repository.CanContentChange (not $isTreePathRoot)}}
|
||||
<div class="divider"></div>
|
||||
|
||||
@@ -191,31 +191,10 @@ func TestAuditLogAdministrationEvents(t *testing.T) {
|
||||
}
|
||||
|
||||
t.Run("ActionsRunners", func(t *testing.T) {
|
||||
resp := MakeRequest(t, NewRequest(t, "POST", repoAPI+"/actions/runners/registration-token").AddTokenAuth(token), http.StatusOK)
|
||||
regToken := DecodeJSON(t, resp, &struct{ Token string }{}).Token
|
||||
MakeRequest(t, NewRequestWithJSON(t, "POST", "/api/actions/runner.v1.RunnerService/Register", map[string]string{"token": regToken, "name": "audit-runner"}), http.StatusOK)
|
||||
registered := unittest.AssertExistsAndLoadBean(t, &audit_model.Event{Action: audit_model.RepositoryRunnerRegister, ScopeID: 1})
|
||||
assert.Equal(t, user_model.ActionsUserID, registered.ActorID)
|
||||
assert.Equal(t, audit_model.OriginAPI, registered.Origin)
|
||||
assert.NotEmpty(t, registered.IPAddress)
|
||||
assert.Equal(t, "audit-runner", audit_model.DecodeMetadata(registered.Metadata)["runner"])
|
||||
|
||||
session := loginUser(t, "user2")
|
||||
for range 2 { // unchanged state must not be recorded again
|
||||
MakeRequest(t, NewRequestWithJSON(t, "PATCH", repoAPI+"/actions/runners/34348", &api.EditActionRunnerOption{Disabled: new(true)}).AddTokenAuth(token), http.StatusOK)
|
||||
session.MakeRequest(t, NewRequestWithValues(t, "POST", "/user2/repo1/settings/actions/runners/34348", map[string]string{"description": "audited"}), http.StatusSeeOther)
|
||||
}
|
||||
MakeRequest(t, NewRequestWithJSON(t, "PATCH", repoAPI+"/actions/runners/34348", &api.EditActionRunnerOption{Disabled: new(false)}).AddTokenAuth(token), http.StatusOK)
|
||||
MakeRequest(t, NewRequest(t, "POST", repoAPI+"/actions/runners/registration-token").AddTokenAuth(token), http.StatusOK)
|
||||
MakeRequest(t, NewRequestWithJSON(t, "PATCH", repoAPI+"/actions/runners/34348", &api.EditActionRunnerOption{Disabled: new(true)}).AddTokenAuth(token), http.StatusOK)
|
||||
MakeRequest(t, NewRequest(t, "DELETE", repoAPI+"/actions/runners/34348").AddTokenAuth(token), http.StatusNoContent)
|
||||
removed := unittest.AssertExistsAndLoadBean(t, &audit_model.Event{Action: audit_model.RepositoryRunnerRemove, ScopeID: 1})
|
||||
assert.EqualValues(t, 34348, audit_model.DecodeMetadata(removed.Metadata)["runner_id"])
|
||||
for _, action := range []audit_model.Action{
|
||||
audit_model.RepositoryRunnerToken,
|
||||
audit_model.RepositoryRunnerDisable,
|
||||
audit_model.RepositoryRunnerEnable,
|
||||
audit_model.RepositoryRunnerUpdate,
|
||||
audit_model.RepositoryRunnerRemove,
|
||||
} {
|
||||
for _, action := range []audit_model.Action{audit_model.RepositoryRunnerToken, audit_model.RepositoryRunnerUpdate, audit_model.RepositoryRunnerRemove} {
|
||||
assertEvent(t, action, audit_model.ScopeRepository, 1)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -148,10 +148,10 @@ func TestAPIAdminAccessAndSSHKeys(t *testing.T) {
|
||||
AddTokenAuth(token)
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
assert.Equal(t, "29", resp.Header().Get("X-Total-Count"))
|
||||
assert.Equal(t, "31", resp.Header().Get("X-Total-Count"))
|
||||
|
||||
crons := DecodeJSON(t, resp, []api.Cron{})
|
||||
assert.Len(t, crons, 29)
|
||||
assert.Len(t, crons, 30)
|
||||
})
|
||||
|
||||
t.Run("Execute", func(t *testing.T) {
|
||||
@@ -159,7 +159,10 @@ func TestAPIAdminAccessAndSSHKeys(t *testing.T) {
|
||||
|
||||
now := time.Now()
|
||||
token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeWriteAdmin)
|
||||
req := NewRequest(t, "POST", "/api/v1/admin/cron/deleted_branches_cleanup").
|
||||
// Archive cleanup is harmless, because in the test environment there are none
|
||||
// and is thus an NOOP operation and therefore doesn't interfere with any other
|
||||
// tests.
|
||||
req := NewRequest(t, "POST", "/api/v1/admin/cron/archive_cleanup").
|
||||
AddTokenAuth(token)
|
||||
MakeRequest(t, req, http.StatusNoContent)
|
||||
|
||||
@@ -171,7 +174,7 @@ func TestAPIAdminAccessAndSSHKeys(t *testing.T) {
|
||||
crons := DecodeJSON(t, resp, []api.Cron{})
|
||||
|
||||
for _, cron := range crons {
|
||||
if cron.Name == "deleted_branches_cleanup" {
|
||||
if cron.Name == "archive_cleanup" {
|
||||
assert.True(t, now.Before(cron.Prev))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ import (
|
||||
|
||||
type downloadScopeCase struct {
|
||||
name string
|
||||
method string
|
||||
url string
|
||||
publicOnlyOK bool
|
||||
}
|
||||
@@ -77,11 +78,25 @@ func TestDownloadRepoContent(t *testing.T) {
|
||||
cases := []downloadScopeCase{
|
||||
{
|
||||
name: "PublicArchiveDownload",
|
||||
method: http.MethodGet,
|
||||
url: "/user2/repo1/archive/master.tar.gz",
|
||||
publicOnlyOK: true,
|
||||
},
|
||||
{
|
||||
name: "PrivateArchiveDownload",
|
||||
method: http.MethodGet,
|
||||
url: "/user2/repo2/archive/master.tar.gz",
|
||||
publicOnlyOK: false,
|
||||
},
|
||||
{
|
||||
name: "PublicArchiveInitiate",
|
||||
method: http.MethodPost,
|
||||
url: "/user2/repo1/archive/master.tar.gz",
|
||||
publicOnlyOK: true,
|
||||
},
|
||||
{
|
||||
name: "PrivateArchiveInitiate",
|
||||
method: http.MethodPost,
|
||||
url: "/user2/repo2/archive/master.tar.gz",
|
||||
publicOnlyOK: false,
|
||||
},
|
||||
@@ -95,6 +110,7 @@ func TestDownloadRepoContent(t *testing.T) {
|
||||
} {
|
||||
cases = append(cases, downloadScopeCase{
|
||||
name: "Public" + route + ref.name,
|
||||
method: http.MethodGet,
|
||||
url: "/user2/repo1/" + strings.ToLower(route) + "/" + ref.path,
|
||||
publicOnlyOK: true,
|
||||
})
|
||||
@@ -103,16 +119,19 @@ func TestDownloadRepoContent(t *testing.T) {
|
||||
cases = append(cases,
|
||||
downloadScopeCase{
|
||||
name: "PrivateRawBranch",
|
||||
method: http.MethodGet,
|
||||
url: "/user2/repo2/raw/branch/master/test.xml",
|
||||
publicOnlyOK: false,
|
||||
},
|
||||
downloadScopeCase{
|
||||
name: "PrivateRawBlob",
|
||||
method: http.MethodGet,
|
||||
url: "/user2/repo2/raw/blob/6395b68e1feebb1e4c657b4f9f6ba2676a283c0b",
|
||||
publicOnlyOK: false,
|
||||
},
|
||||
downloadScopeCase{
|
||||
name: "PrivateMediaBranch",
|
||||
method: http.MethodGet,
|
||||
url: "/user2/repo2/media/branch/master/test.xml",
|
||||
publicOnlyOK: false,
|
||||
},
|
||||
@@ -120,14 +139,14 @@ func TestDownloadRepoContent(t *testing.T) {
|
||||
|
||||
for _, tc := range cases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
MakeRequest(t, NewRequest(t, http.MethodGet, tc.url).AddTokenAuth(miscToken), http.StatusForbidden)
|
||||
MakeRequest(t, NewRequest(t, http.MethodGet, tc.url).AddTokenAuth(ownerReadToken), http.StatusOK)
|
||||
MakeRequest(t, NewRequest(t, tc.method, tc.url).AddTokenAuth(miscToken), http.StatusForbidden)
|
||||
MakeRequest(t, NewRequest(t, tc.method, tc.url).AddTokenAuth(ownerReadToken), http.StatusOK)
|
||||
|
||||
publicOnlyStatus := http.StatusNotFound
|
||||
if tc.publicOnlyOK {
|
||||
publicOnlyStatus = http.StatusOK
|
||||
}
|
||||
MakeRequest(t, NewRequest(t, http.MethodGet, tc.url).AddTokenAuth(publicOnlyToken), publicOnlyStatus)
|
||||
MakeRequest(t, NewRequest(t, tc.method, tc.url).AddTokenAuth(publicOnlyToken), publicOnlyStatus)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -50,6 +50,7 @@ func TestRepoDownloadArchive(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("Conditional", func(t *testing.T) {
|
||||
defer test.MockVariableValue(&setting.Repository.StreamArchives, true)()
|
||||
archiveURL := "/user2/repo1/archive/archive-test.tar.gz"
|
||||
etag := MakeRequest(t, NewRequest(t, "GET", archiveURL), http.StatusOK).Header().Get("ETag")
|
||||
assert.True(t, strings.HasPrefix(etag, `W/"`))
|
||||
@@ -57,11 +58,17 @@ func TestRepoDownloadArchive(t *testing.T) {
|
||||
MakeRequest(t, NewRequest(t, "GET", archiveURL+"?path=aaa.doc").SetHeader("If-None-Match", etag), http.StatusOK)
|
||||
assert.NotEqual(t, etag, MakeRequest(t, NewRequest(t, "GET", "/user2/repo1/archive/master.tar.gz"), http.StatusOK).Header().Get("ETag"))
|
||||
|
||||
restoreStreaming := test.MockVariableValue(&setting.Repository.StreamArchives, false)
|
||||
MakeRequest(t, NewRequest(t, "GET", archiveURL).SetHeader("If-None-Match", etag), http.StatusOK)
|
||||
restoreStreaming()
|
||||
|
||||
defer test.MockVariableValue(&setting.Repository.PrefixArchiveFiles, !setting.Repository.PrefixArchiveFiles)()
|
||||
MakeRequest(t, NewRequest(t, "GET", archiveURL).SetHeader("If-None-Match", etag), http.StatusOK)
|
||||
})
|
||||
|
||||
t.Run("SubPath", func(t *testing.T) {
|
||||
// When using "archiving and caching" approach, archiving with paths will always use streaming and never be cached
|
||||
defer test.MockVariableValue(&setting.Repository.StreamArchives, false)() // this can be removed if there is always streaming mode
|
||||
req := NewRequest(t, "GET", "/user2/repo1/archive/archive-test.tar.gz?path=aaa.doc&path=x/y")
|
||||
resp := MakeRequest(t, req, http.StatusOK)
|
||||
content, err := test.ReadAllTarGzContent(resp.Body)
|
||||
|
||||
@@ -1,10 +1,42 @@
|
||||
import {toggleElem} from '../utils/dom.ts';
|
||||
import {queryElems, toggleElem} from '../utils/dom.ts';
|
||||
import {errorMessage} from '../modules/errors.ts';
|
||||
import {POST} from '../modules/fetch.ts';
|
||||
import {showErrorToast} from '../modules/toast.ts';
|
||||
import {sleep} from '../utils.ts';
|
||||
import RepoActivityTopAuthors from '../components/RepoActivityTopAuthors.vue';
|
||||
import {createApp} from 'vue';
|
||||
import {createTippy} from '../modules/tippy.ts';
|
||||
import {localUserSettings} from '../modules/user-settings.ts';
|
||||
import {registerGlobalInitFunc} from '../modules/observer.ts';
|
||||
|
||||
async function onDownloadArchive(e: Event) {
|
||||
e.preventDefault();
|
||||
// there are many places using the "archive-link", eg: the dropdown on the repo code page, the release list
|
||||
const el = (e.target as HTMLElement).closest<HTMLAnchorElement>('a.archive-link[href]')!;
|
||||
const targetLoading = el.closest('.ui.dropdown') ?? el;
|
||||
targetLoading.classList.add('is-loading', 'loading-icon-2px');
|
||||
try {
|
||||
for (let tryCount = 0; ;tryCount++) {
|
||||
const response = await POST(el.href);
|
||||
if (!response.ok) throw new Error(`Invalid server response: ${response.status}`);
|
||||
|
||||
const data = await response.json();
|
||||
if (data.complete) break;
|
||||
await sleep(Math.min((tryCount + 1) * 750, 2000));
|
||||
}
|
||||
window.location.assign(el.href); // the archive is ready, start real downloading
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
showErrorToast(`Failed to download the archive: ${errorMessage(e)}`, {duration: 2500});
|
||||
} finally {
|
||||
targetLoading.classList.remove('is-loading', 'loading-icon-2px');
|
||||
}
|
||||
}
|
||||
|
||||
export function initRepoArchiveLinks() {
|
||||
queryElems(document, 'a.archive-link[href]', (el) => el.addEventListener('click', onDownloadArchive));
|
||||
}
|
||||
|
||||
export function initRepoActivityTopAuthorsChart() {
|
||||
const el = document.querySelector('#repo-activity-top-authors-chart');
|
||||
if (el) {
|
||||
|
||||
@@ -26,7 +26,7 @@ import {initAdminCommon} from './features/admin/common.ts';
|
||||
import {initRepoCodeView} from './features/repo-code.ts';
|
||||
import {initSshKeyFormParser} from './features/sshkey-helper.ts';
|
||||
import {initUserSettings} from './features/user-settings.ts';
|
||||
import {initRepoActivityTopAuthorsChart} from './features/repo-common.ts';
|
||||
import {initRepoActivityTopAuthorsChart, initRepoArchiveLinks} from './features/repo-common.ts';
|
||||
import {initRepoMigrationStatusChecker} from './features/repo-migrate.ts';
|
||||
import {initRepoDiffView} from './features/repo-diff.ts';
|
||||
import {initOrgTeam} from './features/org-team.ts';
|
||||
@@ -123,6 +123,7 @@ const initPerformanceTracer = callInitFunctions([
|
||||
initOrgTeam,
|
||||
|
||||
initRepoActivityTopAuthorsChart,
|
||||
initRepoArchiveLinks,
|
||||
initRepoBranchButton,
|
||||
initRepoCodeView,
|
||||
initBranchSelectorTabs,
|
||||
|
||||
Reference in New Issue
Block a user