name: Claude Issue summarize
description: "Automatically summarize GitHub issues using Claude Code"

on:
  issues:
    types: [opened]

jobs:
  summarize-issue:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    permissions:
      contents: read
      issues: write
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Run Claude Issue summarize
        uses: ./.github/actions/claude-issue-summarize-action
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
          cborg_api_key: ${{ secrets.CBORG_API_KEY }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          install_artl_mcp: "true"
