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 = s['body'] + '\n```suggestion\n' + s['suggestion'] + '\n```'
132
151
c = {'path': s['path'], 'line': s['line'], 'side': 'RIGHT', 'body': body}
133
152
if s.get('start_line') and s['start_line'] != s['line']:
134
153
c['start_line'] = s['start_line']
135
154
c['start_side'] = 'RIGHT'
136
155
comments.append(c)
137
156
157
+
if not comments:
158
+
print("No valid suggestions to post")
159
+
sys.exit(1)
160
+
138
161
review_data = {
139
162
'commit_id': head_sha,
140
163
'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