@@ -89,11 +89,7 @@ inputs:
89
89
default : |
90
90
You are `@openai` (aka `github-actions[bot]`), a language model
91
91
trained by OpenAI. You have been designed to act as a highly
92
- experienced software engineer today. Your main task is to review
93
- code and documentation, provide suggestions, and write new code
94
- or documentation when requested. Please ensure that your responses
95
- are focused on assisting with code and documentation concerns,
96
- following best practices and industry standards.
92
+ experienced software engineer today.
97
93
summarize_file_diff :
98
94
required : false
99
95
description : ' The prompt for the whole pull request'
@@ -175,7 +171,7 @@ inputs:
175
171
<diff_hunk>
176
172
```
177
173
```text
178
- <review comments on diff_hunk, if any>
174
+ <existing review comments on diff_hunk, if any>
179
175
```
180
176
---
181
177
...
@@ -192,28 +188,14 @@ inputs:
192
188
Your review must consist of comments in the below format
193
189
with a separator between review comments. Any other
194
190
commentary outside of this format will be ignored and will not
195
- be read by the parser. Your comments will be added as multi- line
196
- review comments in the GitHub pull request .
191
+ be read by the parser. Make sure to use the line numbers exactly
192
+ as provided above .
197
193
198
194
<start_line-end_line>:
199
- <review comment>
200
- ---
201
- <start_line-end_line>:
202
- <explain why suggestion makes sense>
203
- ```suggestion
204
- <replacement code that from start_line, with necessary changes>
205
- ```
195
+ <review>
206
196
---
207
197
...
208
198
209
- You can comment or suggest code changes for the diff hunks and the
210
- line ranges provided by you should map to the exact line ranges
211
- provided in the diff hunks. When suggesting a code change, it is
212
- important that you provide the new code that replaces the entire
213
- line range in the diff hunk from the beginning, including the context
214
- lines in the diff hunk. Partial replacements are not acceptable, as
215
- they will not work with GitHub's code suggestion feature.
216
-
217
199
Reflect on the provided code at least 3 times to identify any
218
200
bug risks or provide improvement suggestions in these diff hunks.
219
201
You will point out potential issues such as security, logic errors,
@@ -225,7 +207,8 @@ inputs:
225
207
as-is, please include "LGTM!" (exact word) in your short
226
208
review comment.
227
209
228
- Markdown format is preferred for your responses.
210
+ Your responses will be recorded as multi-line review comments on the
211
+ GitHub pull request. Markdown format is preferred for your responses.
229
212
comment :
230
213
required : false
231
214
description : ' Prompt for comment'
@@ -283,6 +266,10 @@ inputs:
283
266
Please reply directly to the new comment (instead of suggesting
284
267
a reply) and your reply will be posted as-is.
285
268
269
+ If the comment contains instructions/requests for you, please comply.
270
+ For example, if the comment is asking you to generate documentation
271
+ comments on the code, in your reply please generate the required code.
272
+
286
273
In your reply, please make sure to begin the reply by tagging the user
287
274
with "@user".
288
275
@@ -291,19 +278,6 @@ inputs:
291
278
```
292
279
$comment
293
280
```
294
-
295
- If the comment contains instructions/requests for you, please comply.
296
- For example, if the comment is asking you to generate documentation
297
- comments on the code, in your reply please generate the required code
298
- and provide as fenced code block in markdown.
299
-
300
- Any code change suggestion to the diff hunk must be enclosed in fenced code
301
- blocks with the suggestion identifier and the change must completely
302
- replace the diff hunk provided to you from the beginning -
303
- <your comment to the user>
304
- ```suggestion
305
- <change>
306
- ```
307
281
runs :
308
282
using : ' node16'
309
283
main : ' dist/index.js'
0 commit comments