You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--body "This PR is from a fork. Automated fixes cannot be pushed directly. Apply the inline suggestions from the review manually, or use GitHub's batch feature to commit them all at once."
Copy file name to clipboardExpand all lines: .github/workflows/claude-documentation-reviewer.yml
+55-6Lines changed: 55 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -88,19 +88,68 @@ jobs:
88
88
89
89
Do not review or comment on any other files (e.g., .js, .ts, .json, etc.). Focus exclusively on the documentation changes in the markdown files listed above.
90
90
91
-
Write your complete review to /tmp/review.md.
91
+
Write your findings to /tmp/suggestions.json following the format in your instructions.
echo "To apply fixes, reply with \`@claude\` followed by your instructions (e.g. \`@claude fix all issues\` or \`@claude fix only the spelling errors\`)." >> /tmp/review.md
105
-
echo "Note: fixes are posted as inline suggestions. Click 'Apply suggestion' on each one to accept it." >> /tmp/review.md
'--body', 'No issues found in the changed files.'],
124
+
check=True
125
+
)
126
+
print("No issues found")
127
+
sys.exit(0)
128
+
129
+
comments = []
130
+
for s in suggestions:
131
+
body = s['body'] + '\n```suggestion\n' + s['suggestion'] + '\n```'
132
+
c = {'path': s['path'], 'line': s['line'], 'side': 'RIGHT', 'body': body}
133
+
if s.get('start_line') and s['start_line'] != s['line']:
134
+
c['start_line'] = s['start_line']
135
+
c['start_side'] = 'RIGHT'
136
+
comments.append(c)
137
+
138
+
review_data = {
139
+
'commit_id': head_sha,
140
+
'body': f'Found {len(comments)} issue(s). To apply all fixes at once, reply with `@claude` followed by your instructions (e.g. `@claude fix all issues`).',
0 commit comments