From 3dcb4f93366373c486a6faa855f3b57a6cf33287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 2 Jul 2024 10:36:14 +0200 Subject: [PATCH] fix --- share/organisation/check.rhai | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/organisation/check.rhai b/share/organisation/check.rhai index 0b0a098..8b0cc84 100644 --- a/share/organisation/check.rhai +++ b/share/organisation/check.rhai @@ -20,8 +20,8 @@ fn conditions() { let password = base64_decode(gitea.data.password); let headers = http_header_basic(username,password); let response = http_get_json(`http://gitea-http.${global::DOMAIN}-ci.svc:3000/api/v1/orgs/${org}/repos`, headers); - log_warn(type_of(response.code)); - if (response.code>=200&&response.code<300) { + log_warn(type_of(response.code*1)); + if (response.code*1>=200&&response.code*1<300) { repos += response.json.map(|p| p.name); repos.sort(); log_info(`Found ${repos.len} repos`);