From 235619e4a0f2b95d68707837bc0c2a92089c8f95 Mon Sep 17 00:00:00 2001 From: runephilosof-karnovgroup <101270124+runephilosof-karnovgroup@users.noreply.github.com> Date: Thu, 3 Aug 2023 02:35:03 +0200 Subject: [PATCH 1/2] client: Fix RepoPost path (#2091) Closes https://github.com/woodpecker-ci/woodpecker/issues/2088 --- woodpecker-go/woodpecker/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/woodpecker-go/woodpecker/client.go b/woodpecker-go/woodpecker/client.go index 3e7b53dea0..b06e3aa570 100644 --- a/woodpecker-go/woodpecker/client.go +++ b/woodpecker-go/woodpecker/client.go @@ -28,6 +28,7 @@ import ( const ( pathSelf = "%s/api/user" pathRepos = "%s/api/user/repos" + pathRepoPost = "%s/api/repos?forge_remote_id=%d" pathRepo = "%s/api/repos/%d" pathRepoLookup = "%s/api/repos/lookup/%s" pathRepoMove = "%s/api/repos/%d/move?to=%s" @@ -174,7 +175,7 @@ func (c *client) RepoListOpts(sync, all bool) ([]*Repo, error) { // RepoPost activates a repository. func (c *client) RepoPost(forgeRemoteID int64) (*Repo, error) { out := new(Repo) - uri := fmt.Sprintf(pathRepo, c.addr, forgeRemoteID) + uri := fmt.Sprintf(pathRepoPost, c.addr, forgeRemoteID) err := c.post(uri, nil, out) return out, err } From f9ec8004817aeeee8b5b93a7a623b63703fe1f8b Mon Sep 17 00:00:00 2001 From: Weblate Date: Thu, 3 Aug 2023 00:35:08 +0000 Subject: [PATCH 2/2] Update translation files Updated by "Cleanup translation files" hook in Weblate. Co-authored-by: Weblate Translate-URL: http://translate.woodpecker-ci.org/projects/woodpecker-ci/ui/ Translation: Woodpecker CI/UI --- web/src/assets/locales/de.json | 4 ---- web/src/assets/locales/fr.json | 8 -------- web/src/assets/locales/lv.json | 8 -------- web/src/assets/locales/zh-Hans.json | 8 -------- 4 files changed, 28 deletions(-) diff --git a/web/src/assets/locales/de.json b/web/src/assets/locales/de.json index 4d2c0ffba4..780a548fb1 100644 --- a/web/src/assets/locales/de.json +++ b/web/src/assets/locales/de.json @@ -161,17 +161,13 @@ "branches": "Branches", "build": { "actions": { - "log_auto_scroll": "Automatisches folgen", "restart_success": "Pipeline neu gestartet" }, "event": { - "deploy": "Deploy", "tag": "Tag" }, - "loading": "Laden…", "no_pipelines": "Bisher wurden noch keine Pipelines gestartet.", "protected": { - "approve_success": "Pipeline genehmigt", "declined": "Diese Pipeline ist abgelehnt worden!" } }, diff --git a/web/src/assets/locales/fr.json b/web/src/assets/locales/fr.json index 6c7d5ef241..3149545af0 100644 --- a/web/src/assets/locales/fr.json +++ b/web/src/assets/locales/fr.json @@ -161,18 +161,10 @@ "branches": "Branches", "build": { "actions": { - "log_auto_scroll": "Automatiquement défiler vers le bas", "restart_success": "Pipeline redémarré" }, - "event": { - "deploy": "Déploiement" - }, "execution_error": "Erreur d'execution", - "log_download_error": "Il y a eu une erreur lors du téléchargement du fichier de journal", "pipeline": "Pipeline #{buildId}", - "protected": { - "awaits": "Ce pipeline attends d'être approuvé par un mainteneur !" - }, "step_not_started": "L'étape n'a pas démarré encore." }, "deploy_pipeline": { diff --git a/web/src/assets/locales/lv.json b/web/src/assets/locales/lv.json index 0561d925c3..739db251fe 100644 --- a/web/src/assets/locales/lv.json +++ b/web/src/assets/locales/lv.json @@ -161,18 +161,10 @@ "branches": "Atzari", "build": { "actions": { - "log_auto_scroll": "Automātiski ritināt", "restart_success": "Konvejerdarbs pārstartēts" }, - "event": { - "deploy": "Uzstādīšana" - }, "execution_error": "Uzdevuma izpildes kļūda", - "log_download_error": "Veicot žurnālfaila lejupielādi notika kļūda", "pipeline": "Konvejerdarbs #{buildId}", - "protected": { - "awaits": "Šim konvejerdarbam ir nepieciešams apstiprinājums no atbildīgajām personām!" - }, "step_not_started": "Šis solis vēl nav uzsākts." }, "deploy_pipeline": { diff --git a/web/src/assets/locales/zh-Hans.json b/web/src/assets/locales/zh-Hans.json index ef8da8a6cf..7b6b208061 100644 --- a/web/src/assets/locales/zh-Hans.json +++ b/web/src/assets/locales/zh-Hans.json @@ -76,18 +76,10 @@ "branches": "分支", "build": { "actions": { - "log_auto_scroll": "自动滚动", "restart_success": "流水线已重启" }, - "event": { - "deploy": "部署" - }, "exit_code": "退出代码 {exitCode}", - "no_files": "没有文件修改。", "pipelines_for": "{branch} 分支的流水线", - "protected": { - "decline": "拒绝" - }, "tasks": "任务" }, "enable": {