fix(#130): pass VCS_TYPE env var from action.yml Run review step
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.
This commit is contained in:
@@ -487,6 +487,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 }}
|
||||
|
||||
Reference in New Issue
Block a user