fix(makefile): fall back to upstream/litellm_internal_staging for strict-budget gate

origin/litellm_internal_staging exists on BerriAI's CI but not on forks
that use a different remote name (e.g. Azure DevOps as origin).  Fall
back to upstream/litellm_internal_staging when the origin ref is absent.
This commit is contained in:
Yaniv Israel 2026-06-15 13:31:00 +03:00
parent e1f3ca0c27
commit 9336ed1985

View file

@ -126,7 +126,8 @@ lint-mypy: install-dev
lint-black: format-check
lint-strict-budget: install-dev
$(UV_RUN) python scripts/ruff_strict_gate.py
$(UV_RUN) python scripts/ruff_strict_gate.py \
--base $$(git rev-parse --verify origin/litellm_internal_staging 2>/dev/null && echo origin/litellm_internal_staging || echo upstream/litellm_internal_staging)
lint-strict-budget-update: install-dev
$(UV_RUN) python scripts/ruff_strict_gate.py --update