The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ci(issue-classifier): name every workflow, script and job after the issue it works on
ryan-crabbe-berri539ac2bc0121
diff --git a/.github/labels.json b/.github/issue-labels.jsonsimilarity index 100%rename from .github/labels.jsonrename to .github/issue-labels.jsondiff --git a/.github/workflows/issue_classifier.yml b/.github/workflows/issue_classifier.ymlindex 43f5664f47a..842e4c40b5e 100644--- a/.github/workflows/issue_classifier.yml+++ b/.github/workflows/issue_classifier.yml@@ -13,7 +13,7 @@ on:- .github/workflows/issue_classifier.yml- .github/prompts/issue-classifier.md- .github/prompts/issue-classifier.schema.json- - .github/labels.json+ - .github/issue-labels.json- .github/ISSUE_TEMPLATE/bug_report.yml- .github/ISSUE_TEMPLATE/feature_request.yml- scripts/classify-issue.ts@@ -31,7 +31,7 @@ concurrency:cancel-in-progress: falsejobs:- classifier-tests:+ classify-issue-tests:if: github.event_name == 'pull_request'runs-on: ubuntu-latesttimeout-minutes: 5diff --git a/.github/workflows/label_claude_code.yml b/.github/workflows/issue_label_claude_code.ymlsimilarity index 94%rename from .github/workflows/label_claude_code.ymlrename to .github/workflows/issue_label_claude_code.ymlindex cbfecc316ef..6c88433bc21 100644--- a/.github/workflows/label_claude_code.yml+++ b/.github/workflows/issue_label_claude_code.yml@@ -1,4 +1,4 @@-name: Label Claude Code issues+name: Issue label claude codeon:issues:diff --git a/.github/workflows/label_sync.yml b/.github/workflows/issue_label_sync.ymlsimilarity index 77%rename from .github/workflows/label_sync.ymlrename to .github/workflows/issue_label_sync.ymlindex 67102ba58b7..870dab373d4 100644--- a/.github/workflows/label_sync.yml+++ b/.github/workflows/issue_label_sync.yml@@ -1,11 +1,11 @@-name: Label sync+name: Issue label syncon:push:branches: [main]paths:- - .github/labels.json- - scripts/sync-labels.ts+ - .github/issue-labels.json+ - scripts/sync-issue-labels.tsworkflow_dispatch:inputs:dry_run:@@ -14,16 +14,16 @@ on:default: truepull_request:paths:- - .github/workflows/label_sync.yml- - .github/labels.json- - scripts/sync-labels.ts- - scripts/sync-labels.test.ts+ - .github/workflows/issue_label_sync.yml+ - .github/issue-labels.json+ - scripts/sync-issue-labels.ts+ - scripts/sync-issue-labels.test.ts- scripts/issue-labels.tspermissions: {}jobs:- sync-tests:+ sync-issue-labels-tests:if: github.event_name == 'pull_request'runs-on: ubuntu-latesttimeout-minutes: 5@@ -41,9 +41,9 @@ jobs:bun-version: "1.4.0"- name: Test the sync- run: bun test scripts/sync-labels.test.ts+ run: bun test scripts/sync-issue-labels.test.ts- sync:+ sync-issue-labels:if: github.event_name != 'pull_request' && github.repository == 'BerriAI/litellm'runs-on: ubuntu-latesttimeout-minutes: 5@@ -65,8 +65,8 @@ jobs:# Exact version, never latest: the next step holds an issues: write tokenbun-version: "1.4.0"- - name: Create or recolour every label in .github/labels.json- run: bun run scripts/sync-labels.ts+ - name: Create or recolour every label in .github/issue-labels.json+ run: bun run scripts/sync-issue-labels.tsenv:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run == true }}diff --git a/scripts/issue-labels.ts b/scripts/issue-labels.tsindex a216bca804b..a39f4efa160 100644--- a/scripts/issue-labels.ts+++ b/scripts/issue-labels.ts@@ -1,4 +1,4 @@-import manifest from "../.github/labels.json";+import manifest from "../.github/issue-labels.json";export const NAMESPACES = ["domain", "provider", "kind", "priority", "lift", "needs"] as const;export type Namespace = (typeof NAMESPACES)[number];diff --git a/scripts/label-issue.ts b/scripts/label-issue.tsindex 05a933755df..ce18b6ee2c1 100644--- a/scripts/label-issue.ts+++ b/scripts/label-issue.ts@@ -97,7 +97,7 @@ export function parseVerdict(raw: string): ParsedVerdict {const known = new Set(manifestLabels(MANIFEST).map((label) => label.name));const unknown = desiredLabels(verdict).filter((label) => !known.has(label));if (unknown.length > 0) {- return { kind: "invalid", reason: `not in .github/labels.json: ${unknown.join(", ")}` };+ return { kind: "invalid", reason: `not in .github/issue-labels.json: ${unknown.join(", ")}` };}return { kind: "verdict", verdict };}diff --git a/scripts/sync-labels.test.ts b/scripts/sync-issue-labels.test.tssimilarity index 99%rename from scripts/sync-labels.test.tsrename to scripts/sync-issue-labels.test.tsindex aed3dfc9cd5..1c0441d5308 100644--- a/scripts/sync-labels.test.ts+++ b/scripts/sync-issue-labels.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";import type { GitHubApi } from "./auto-close-duplicates";import { MANIFEST, manifestLabels, type Manifest } from "./issue-labels";-import { readConfig, syncLabels, syncPlan, type GitHubLabel } from "./sync-labels";+import { readConfig, syncLabels, syncPlan, type GitHubLabel } from "./sync-issue-labels";const small: Manifest = {domain: { caching: { color: "1C6E5B", description: "Response cache" } },diff --git a/scripts/sync-labels.ts b/scripts/sync-issue-labels.tssimilarity index 100%rename from scripts/sync-labels.tsrename to scripts/sync-issue-labels.ts