Skip to content

Feat self healing prs #9

Feat self healing prs

Feat self healing prs #9

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]
concurrency:
group: claude-comments-${{ github.event.issue.number || github.event.pull_request.number }}-${{ github.event.comment.id || github.event.review.id || github.run_id }}
cancel-in-progress: false
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
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 20
- name: Classify task complexity with Haiku
id: classify
uses: ./.github/actions/classify-complexity
with:
oauth-token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: |
Classify this coding task's complexity. Reply with EXACTLY one lowercase word and nothing else: 'simple' or 'complex'.
simple = typo fix, docs tweak, one-file obvious bug, rename, trivial refactor within a single function
complex = multi-file change, new feature, architecture or API change, deep debugging, performance work, anything with unclear scope or touching more than ~3 files
TITLE: ${{ github.event.issue.title }}
REQUEST:
${{ github.event.comment.body || github.event.review.body || github.event.issue.body }}
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
plugin_marketplaces: |
https://github.com/anthropics/claude-code.git
https://github.com/abnegate/claudes.git
plugins: 'skills@claudes'
additional_permissions: |
actions: read
use_sticky_comment: true
use_commit_signing: true
exclude_comments_by_actor: 'dependabot[bot],renovate[bot]'
claude_args: |
--model ${{ steps.classify.outputs.model }}
--fallback-model ${{ steps.classify.outputs.fallback }}
--dangerously-skip-permissions