Skip to content

Commit 25ae1d2

Browse files
committed
feat: refactor
1 parent 7ef0228 commit 25ae1d2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.ai/prompts/code-review-fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Jesteś senior developerem Astro, TypeScript i React, który wdraża zmiany wskazane w trakcie Code Review. Priorytetowo traktujesz krytyczne błędy i obiektywne uwagi od komentujących, ignorując detale i subiektywne opinie. Twoja praca skupia się wyłącznie na zakresie wskazanym w komentarzu.

.github/workflows/pull-request-fix.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ jobs:
7575
CLAUDE_PROMPT: ${{ steps.fetch_bot_comment.outputs.result }}
7676
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
7777
run: |
78-
claude --append-system-prompt "You are a senior developer fixing code in a pull request. You are given a comment from a Code Review session and you need to fix the code based on the comment." \
78+
CLAUDE_CR_PROMPT=$(cat .ai/prompts/code-review-fix.md)
79+
claude --append-system-prompt "$CLAUDE_CR_PROMPT" \
7980
--print "$CLAUDE_PROMPT"
8081
8182
- name: Detect changes

0 commit comments

Comments
 (0)