From c40523f827d2e180587cc1b42f033f62c54d4e15 Mon Sep 17 00:00:00 2001 From: Tai An Date: Sat, 9 May 2026 21:16:32 -0700 Subject: [PATCH] ci(guard): point external contributors to litellm_internal_staging (#27510) The Guard main branch workflow tells fork-based contributors to retarget PRs against 'litellm_oss_branch', but that branch does not exist in the repo (GET /git/ref/heads/litellm_oss_branch returns 404). External PRs are now opened against 'litellm_internal_staging' (matches the branch the workflow itself already accepts as a valid source). Update both error messages to reference an existing branch so the guard's instructions are actionable. --- .github/workflows/guard-main-branch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/guard-main-branch.yml b/.github/workflows/guard-main-branch.yml index 1c1ce0de079..c8803d542cc 100644 --- a/.github/workflows/guard-main-branch.yml +++ b/.github/workflows/guard-main-branch.yml @@ -31,12 +31,12 @@ jobs: echo "PR head repo: $HEAD_REPO" echo "PR head branch: $HEAD_REF" if [ "$HEAD_REPO" != "$BASE_REPO" ]; then - echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO). External contributors should open PRs against the 'litellm_oss_branch' branch instead." + echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO). External contributors should open PRs against the 'litellm_internal_staging' branch instead." exit 1 fi if [ "$HEAD_REF" = "litellm_internal_staging" ] || [[ "$HEAD_REF" == litellm_hotfix_?* ]]; then echo "Allowed source branch." exit 0 fi - echo "::error::PRs to main must originate from 'litellm_internal_staging' or a 'litellm_hotfix_*' branch. Got: '$HEAD_REF'. If this is a contribution, retarget the PR against 'litellm_oss_branch' instead." + echo "::error::PRs to main must originate from 'litellm_internal_staging' or a 'litellm_hotfix_*' branch. Got: '$HEAD_REF'. If this is a contribution, retarget the PR against 'litellm_internal_staging' instead." exit 1