From c3876db9acf62d540f4be90af5f98838275301f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sat, 1 Jun 2024 15:15:27 +0200 Subject: [PATCH] fix --- share/gitea-tekton-org/index.rhai | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/gitea-tekton-org/index.rhai b/share/gitea-tekton-org/index.rhai index 66908de..39d1b93 100644 --- a/share/gitea-tekton-org/index.rhai +++ b/share/gitea-tekton-org/index.rhai @@ -3,6 +3,7 @@ const DEST=dest; const duplicates=["auto_ci_detector.py","functions.sh"]; const DOMAIN = config.domain; const NAME = instance; +const ORG = config.organization; fn duplicate_files() { for file in global::duplicates { shell(`cp ${global::SRC}/${file} ${global::DEST}/${file}`); @@ -19,8 +20,7 @@ fn have_taiga() { } fn gitea_repos() { let repos = []; - let org = global::NAME; - org.replace("org-",""); + let org = global::ORG; if (have_gitea() && have_sonar()) { let gitea = get_secret(`${global::DOMAIN}-ci`, "gitea-admin-user"); let username = base64_decode(gitea.data.username);