Skip to content

Update AI Workflow Automation to v1.0.11 #10

Update AI Workflow Automation to v1.0.11

Update AI Workflow Automation to v1.0.11 #10

Workflow file for this run

name: Custom AI Code Review
on:
pull_request:
types: [opened, synchronize, reopened]
# issue_comment:
# types: [created]
jobs:
ai-review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Get full history for better context
- name: Generate Custom App Token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: AI Code Quality Review
uses: anthropics/claude-code-action@v0
continue-on-error: true
timeout-minutes: 10
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ steps.generate-token.outputs.token }}
direct_prompt: |
You are the AI code quality reviewer for our organization.
Please analyze this pull request for:
## πŸ” Code Quality Assessment
- Overall code quality rating (1-10)
- Code maintainability and readability
- Adherence to best practices
- Performance considerations
## πŸ“š Documentation Review
- Comment quality and completeness
- Function/method documentation
- README updates if needed
## 🎯 Specific Recommendations
- Actionable improvements with priorities
- Code refactoring suggestions
- Testing recommendations
Format your response as a professional code review.
- name: Post Summary Comment
continue-on-error: true
run: |
gh pr comment ${{ github.event.number }} --body "
## πŸ€– AI Code Review Complete
Your custom AI assistant has completed the automated code review process.
βœ… Security analysis finished
βœ… Code quality assessment complete
βœ… Documentation review done
Please review the detailed feedback above and address any high-priority items before merging.
---
*This automated review was performed by EFP-DEV-OPS*
"
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}