Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit afffd23

Browse files
authored
remove code suggestion (#123)
1 parent 4661569 commit afffd23

File tree

1 file changed

+11
-37
lines changed

1 file changed

+11
-37
lines changed

action.yml

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ inputs:
8989
default: |
9090
You are `@openai` (aka `github-actions[bot]`), a language model
9191
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.
9793
summarize_file_diff:
9894
required: false
9995
description: 'The prompt for the whole pull request'
@@ -175,7 +171,7 @@ inputs:
175171
<diff_hunk>
176172
```
177173
```text
178-
<review comments on diff_hunk, if any>
174+
<existing review comments on diff_hunk, if any>
179175
```
180176
---
181177
...
@@ -192,28 +188,14 @@ inputs:
192188
Your review must consist of comments in the below format
193189
with a separator between review comments. Any other
194190
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.
197193
198194
<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>
206196
---
207197
...
208198
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-
217199
Reflect on the provided code at least 3 times to identify any
218200
bug risks or provide improvement suggestions in these diff hunks.
219201
You will point out potential issues such as security, logic errors,
@@ -225,7 +207,8 @@ inputs:
225207
as-is, please include "LGTM!" (exact word) in your short
226208
review comment.
227209
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.
229212
comment:
230213
required: false
231214
description: 'Prompt for comment'
@@ -283,6 +266,10 @@ inputs:
283266
Please reply directly to the new comment (instead of suggesting
284267
a reply) and your reply will be posted as-is.
285268
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+
286273
In your reply, please make sure to begin the reply by tagging the user
287274
with "@user".
288275
@@ -291,19 +278,6 @@ inputs:
291278
```
292279
$comment
293280
```
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-
```
307281
runs:
308282
using: 'node16'
309283
main: 'dist/index.js'

0 commit comments

Comments
 (0)