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
- View them in the comments and apply them individually or in a batch. This only applies to changes made to the file.
129
-
- Reply with `@claude` here, followed by your instructions (e.g. `@claude fix all issues` or `@claude fix only the spelling errors` or `@claude fix all other existing issues`). You can use this option to fix preexisting issues.
130
-
131
-
Note: Automated fixes are only available for branches in this repository, not forks."""
125
+
FOOTER = (
126
+
"\n---\n\n"
127
+
"There are two ways to apply fixes:\n"
128
+
"- View them in the comments and apply them individually or in a batch."
129
+
" This only applies to changes made to the file.\n"
130
+
"- Reply with `@claude` here, followed by your instructions"
131
+
" (e.g. `@claude fix all issues` or `@claude fix only the spelling errors`"
132
+
" or `@claude fix all other existing issues`)."
133
+
" You can use this option to fix preexisting issues.\n\n"
134
+
"Note: Automated fixes are only available for branches in this repository, not forks."
135
+
)
132
136
133
137
def parse_diff_to_suggestions(diff_text):
134
138
suggestions = []
@@ -217,6 +221,33 @@ Note: Automated fixes are only available for branches in this repository, not fo
217
221
comment['start_side'] = 'RIGHT'
218
222
return comment
219
223
224
+
def get_pr_diff_valid_lines(base_sha, head_sha):
225
+
"""Return the set of (file, line_number) in HEAD visible in the PR diff."""
0 commit comments