-
Notifications
You must be signed in to change notification settings - Fork 6
claude bot workflow added #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Claude Code Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, ready_for_review, reopened] | ||
| # Optional: Only run on specific file changes | ||
| # paths: | ||
| # - "src/**/*.py" | ||
|
|
||
| jobs: | ||
| claude-review: | ||
| # Optional: Filter by PR author | ||
| # if: | | ||
| # github.event.pull_request.user.login == 'external-contributor' || | ||
| # github.event.pull_request.user.login == 'new-developer' || | ||
| # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' | ||
|
|
||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write # Changed to write so Claude can comment | ||
| issues: read | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Run Claude Code Review | ||
| id: claude-review | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} # Use workflow token to respect permissions | ||
| plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' | ||
| plugins: 'code-review@claude-code-plugins' | ||
| claude_args: '--allowedTools WebSearch,WebFetch,Bash,Skill,Read,Glob' | ||
| prompt: | | ||
| /code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment | ||
|
|
||
| Before reviewing, research best practices for writing Python CLI tools: | ||
| - Search for official documentation on asyncclick, pydantic, and aiohttp | ||
| - Look for common patterns in popular open-source Python CLIs | ||
| - Understand proper use of async/await patterns | ||
| - Review examples of testing strategies for Python CLI tools | ||
| - Check for proper use of type annotations and mypy compliance | ||
|
|
||
| Also research Workato-specific knowledge: | ||
| - Research Workato platform concepts | ||
| - Review Workato Developer API documentation and patterns | ||
| - Understand Workato resource relationships and data models | ||
|
|
||
| Review instructions: | ||
| - Focus ONLY on critical issues and best practices violations | ||
| - Use bullet points, max 5 items total | ||
| - Be extremely concise - one sentence per issue | ||
| - Skip minor style/formatting issues | ||
| - Highlight any deviations from Python CLI development patterns | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.