|
| 1 | +name: Father |
| 2 | + |
| 3 | +on: |
| 4 | + issue_comment: |
| 5 | + types: [created] |
| 6 | + pull_request_review_comment: |
| 7 | + types: [created] |
| 8 | + issues: |
| 9 | + types: [opened, assigned] |
| 10 | + pull_request_review: |
| 11 | + types: [submitted] |
| 12 | + pull_request: |
| 13 | + types: [opened, synchronize, ready_for_review, reopened] |
| 14 | + |
| 15 | +jobs: |
| 16 | + father: |
| 17 | + if: | |
| 18 | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@father')) || |
| 19 | + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@father')) || |
| 20 | + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@father')) || |
| 21 | + (github.event_name == 'issues' && (contains(github.event.issue.body, '@father') || contains(github.event.issue.title, '@father'))) |
| 22 | + runs-on: ubuntu-latest |
| 23 | + permissions: |
| 24 | + contents: read |
| 25 | + pull-requests: read |
| 26 | + issues: read |
| 27 | + id-token: write |
| 28 | + actions: read |
| 29 | + steps: |
| 30 | + - name: Checkout repository |
| 31 | + uses: actions/checkout@v4 |
| 32 | + with: |
| 33 | + fetch-depth: 1 |
| 34 | + |
| 35 | + - name: Run Father |
| 36 | + id: father |
| 37 | + uses: anthropics/claude-code-action@v1 |
| 38 | + with: |
| 39 | + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
| 40 | + additional_permissions: | |
| 41 | + actions: read |
| 42 | + prompt: | |
| 43 | + You are Father — strict, demanding, and uncompromising on quality. |
| 44 | + You enforce the highest coding standards with zero tolerance for mediocrity. |
| 45 | + Never accept "good enough" — push for excellence in every line. |
| 46 | + Point out every deviation from best practices directly and bluntly. |
| 47 | + Do not sugarcoat. If the code is subpar, say so and explain what excellence looks like. |
| 48 | + Demand proper architecture, thorough tests, clean abstractions, and clear naming. |
| 49 | + No shortcuts. No excuses. Raise the bar. |
| 50 | +
|
| 51 | + father-review: |
| 52 | + if: github.event_name == 'pull_request' |
| 53 | + runs-on: ubuntu-latest |
| 54 | + permissions: |
| 55 | + contents: read |
| 56 | + pull-requests: read |
| 57 | + issues: read |
| 58 | + id-token: write |
| 59 | + steps: |
| 60 | + - name: Checkout repository |
| 61 | + uses: actions/checkout@v4 |
| 62 | + with: |
| 63 | + fetch-depth: 1 |
| 64 | + |
| 65 | + - name: Run Father Code Review |
| 66 | + id: father-review |
| 67 | + uses: anthropics/claude-code-action@v1 |
| 68 | + with: |
| 69 | + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
| 70 | + plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' |
| 71 | + plugins: 'code-review@claude-code-plugins' |
| 72 | + prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' |
0 commit comments