From 068807554257847ae47c2eea449431906cfdd4f6 Mon Sep 17 00:00:00 2001 From: litruv Date: Sun, 1 Nov 2026 03:58:19 +1100 Subject: [PATCH] Point the commit link at the public web base. --- .gitea/workflows/checks.yml | 2 ++ scripts/ci-checks.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 46f7e33c..c95b40ed 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -27,6 +27,8 @@ jobs: - name: Run checks env: API_BASE: ${{ github.server_url }}/api/v1 + # github.server_url is the internal runner host, so the commit link needs the public one. + WEB_BASE: https://git.ruv.wtf REPO: ${{ github.repository }} SHA: ${{ github.sha }} # Prefer a PAT with issue write scope (secret: GITEA_TOKEN). diff --git a/scripts/ci-checks.sh b/scripts/ci-checks.sh index 073aa0fe..a07b9aa4 100644 --- a/scripts/ci-checks.sh +++ b/scripts/ci-checks.sh @@ -7,7 +7,7 @@ API_BASE="${API_BASE:?API_BASE is required}" REPO="${REPO:?REPO is required}" TOKEN="${TOKEN:?TOKEN is required}" SHA="${SHA:-}" -BASE="${API_BASE%/api/v1}" +BASE="${WEB_BASE:-${API_BASE%/api/v1}}" LABEL="ci-checks" SHOW="${SHOW:-50}"