Skip to content

Python SDK 2.3.0

Python SDK 2.3.0 #49

Workflow file for this run

name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request:
types: [opened, synchronize]
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
jobs:
# Responds to @claude mentions in PRs and issues
claude-interactive:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Automatic code review on every PR
claude-review:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
prompt: |
Review this PR. Focus on:
- Code quality and correctness
- Test coverage for new/changed functionality
- Documentation accuracy (CHANGELOG, README, USAGE)
- Breaking changes that need MIGRATION.md updates
- Security issues (hardcoded secrets, injection, etc.)
This is a Speakeasy-generated Python SDK. Files under src/youdotcom/
are mostly auto-generated — focus review on:
- tests/ (manually maintained)
- CHANGELOG.md, MIGRATION.md (manually maintained)
- overlays/python_overlay.yaml (manually maintained)
- pyproject.toml version/dependency changes
Use inline comments for specific issues and post a summary comment.
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"