litellm/.github/workflows/issue_label_claude_code.yml
ryan-crabbe-berri 539ac2bc01 ci(issue-classifier): name every workflow, script and job after the issue it works on
Everything this stack adds now carries issue in its file name, workflow name
and job id, so one search finds all of it:

  ls .github/workflows/issue_*
  grep -ril issue scripts .github/prompts .github/*.json

Renames: label_sync.yml -> issue_label_sync.yml, label_claude_code.yml ->
issue_label_claude_code.yml, .github/labels.json -> .github/issue-labels.json,
scripts/sync-labels(.test).ts -> scripts/sync-issue-labels(.test).ts. Job ids
now match the script they run: classify-issue-tests, classify-issue,
label-issue, sync-issue-labels-tests, sync-issue-labels, label-claude-code
2026-09-18 11:37:55 -07:00

21 lines
530 B
YAML

name: Issue label claude code
on:
issues:
types: [opened]
permissions: {}
jobs:
label-claude-code:
if: github.repository == 'BerriAI/litellm' && contains(github.event.issue.body, 'claude code')
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
issues: write
steps:
- name: Add the claude code label
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: gh issue edit "$ISSUE_URL" --add-label "claude code"