Skip to content

Automate release on pyproject version bump #138

Automate release on pyproject version bump

Automate release on pyproject version bump #138

Workflow file for this run

name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]
jobs:
claude:
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')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# This is an optional setting that allows Claude to read CI results on PRs
additional_permissions: |
actions: read
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
# prompt: 'Update the pull request description to include a summary of changes.'
claude_args: >-
--allowedTools
"Bash(git add:*)"
"Bash(git commit:*)"
"Bash(git checkout:*)"
"Bash(git diff:*)"
"Bash(git log:*)"
"Bash(git status:*)"
"Bash(git fetch:*)"
"Bash(git branch:*)"
"Bash(git push:*)"
"Bash(nox:*)"
"Bash(poetry:*)"
"Bash(pip install:*)"
"Bash(pip index:*)"
"Bash(gh pr:*)"
"Bash(gh pr view:*)"
"Bash(gh pr list:*)"
"Bash(gh api:*)"
"Bash(gh run:*)"
"Bash(cat:*)"
"Bash(ls:*)"
Read
Write
Edit
Glob
Grep
WebSearch
WebFetch
mcp__github__list_pull_requests
mcp__github__pull_request_read
mcp__github__pull_request_review_write
mcp__github__add_issue_comment
mcp__github__issue_read
mcp__github__issue_write
mcp__github__search_code
mcp__github__get_file_contents
mcp__github__create_or_update_file
mcp__github__list_commits
mcp__github__get_commit
mcp__github__create_pull_request
mcp__github__update_pull_request
mcp__github__create_branch
mcp__github__list_branches