From 5e20dba3a472b6f92ed04364523ae95cde9495d2 Mon Sep 17 00:00:00 2001 From: Rodin Date: Fri, 15 May 2026 08:35:52 +0000 Subject: [PATCH] fix(#130): pass VCS_TYPE env var from action.yml Run review step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The binary detects VCS type from VCS_TYPE env var, but action.yml did not pass it to the Run review step. This caused the binary to fall back to a URL heuristic (github.com substring), which misclassifies GitHub Enterprise Server hosts whose URL does not contain 'github'. The 'Determine version' step already outputs vcs_type — wire it through to the Run review env block so explicit VCS_TYPE always takes precedence. --- .gitea/actions/review/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/actions/review/action.yml b/.gitea/actions/review/action.yml index de5a9f6..1876cad 100644 --- a/.gitea/actions/review/action.yml +++ b/.gitea/actions/review/action.yml @@ -476,6 +476,7 @@ runs: shell: bash env: VCS_URL: ${{ steps.version.outputs.server_url }} + VCS_TYPE: ${{ steps.version.outputs.vcs_type }} GITEA_REPO: ${{ inputs.repo || github.repository }} PR_NUMBER: ${{ inputs.pr-number || github.event.pull_request.number }} REVIEWER_TOKEN: ${{ inputs.reviewer-token }}