Commit b93e284
fix(ci): 👷 improve LLM PR review workflow (#40)
* ci: 👷 add LLM PR review workflow with manual trigger
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): 🐛 use x-api-key header for Anthropic API auth
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): 🐛 use vars instead of secrets for API base URL and model ID
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): 🐛 extract text content by type instead of fixed index
Some models return thinking blocks before text content, causing
the review text extraction to fail when using content[0].
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): 🐛 use shallow clone and defensive jq extraction
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): 🐛 improve diff handling for LLM review
- Truncate on line boundary to avoid splitting multi-byte UTF-8 chars
- Wrap diff in code fence for clearer LLM parsing
- Add hunk header guidance in system prompt for accurate line references
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): 🐛 use correct Anthropic system field format
The Anthropic Messages API expects system as an array of objects
with type and text fields, not a plain string.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* ci(llm-review): ✨ enhance system prompt with project context and structured review guidelines
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 500bc41 commit b93e284
1 file changed
Lines changed: 45 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 69 | + | |
| 70 | + | |
73 | 71 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 72 | + | |
78 | 73 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
82 | 80 | | |
83 | | - | |
84 | | - | |
| 81 | + | |
85 | 82 | | |
86 | | - | |
87 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
95 | 119 | | |
96 | 120 | | |
97 | 121 | | |
| |||
103 | 127 | | |
104 | 128 | | |
105 | 129 | | |
106 | | - | |
| 130 | + | |
107 | 131 | | |
108 | 132 | | |
109 | 133 | | |
| |||
0 commit comments