Update AI Workflow Automation to v1.0.11 #10
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
| 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 }} |