Rename GITEA_URL env var to generic VCS_URL for multi-host support #125

Closed
opened 2026-05-14 05:05:15 +00:00 by rodin · 0 comments
Owner

Context

The action's Run review step passes GITEA_URL as an environment variable to the review-bot binary. Now that the action supports both Gitea and GitHub/GHES, the name is misleading.

Problem

GITEA_URL suggests the binary only works with Gitea, but it's actually the generic VCS server URL used for both platforms.

Proposed Fix

  1. Rename the env var in the Go binary from GITEA_URL to VCS_URL (or SERVER_URL)
  2. Support GITEA_URL as a deprecated fallback for backwards compatibility
  3. Update the action to pass the new env var name

Origin

Identified during PR #121 review (sonnet NIT #4, comment 21207).

## Context The action's `Run review` step passes `GITEA_URL` as an environment variable to the `review-bot` binary. Now that the action supports both Gitea and GitHub/GHES, the name is misleading. ## Problem `GITEA_URL` suggests the binary only works with Gitea, but it's actually the generic VCS server URL used for both platforms. ## Proposed Fix 1. Rename the env var in the Go binary from `GITEA_URL` to `VCS_URL` (or `SERVER_URL`) 2. Support `GITEA_URL` as a deprecated fallback for backwards compatibility 3. Update the action to pass the new env var name ## Origin Identified during PR #121 review (sonnet NIT #4, comment 21207).
rodin closed this issue 2026-05-14 07:08:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rodin/review-bot#125