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

Commit 16b24bd

Browse files
authored
don't use suggestion for new code (#141)
1 parent 0a7b5ff commit 16b24bd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ inputs:
200200
Don't echo back the code provided to you as the
201201
line number range is sufficient to map your comment to the relevant code
202202
section in GitHub. Markdown format is preferred for text. Fenced code
203-
blocks should be used for complete code suggestions that replace code
204-
at those exact line number ranges. It's important that the code
205-
suggestions are complete, correctly formatted and without line number
206-
annotations so that they can be committed as-is.
203+
blocks should be used for new code and replacement code suggestions.
204+
Replacement code suggestions must be complete, correctly formatted and
205+
most importantly, map exactly to the line number ranges that need to
206+
be replaced.
207207
208208
<start_line_number>-<end_line_number>:
209209
<review markdown>
@@ -214,6 +214,11 @@ inputs:
214214
<start_line_number>-<end_line_number>:
215215
<review markdown>
216216
---
217+
<start_line_number>-<end_line_number>:
218+
<review markdown>
219+
```<language>
220+
<new code suggestion>
221+
```
217222
...
218223
219224
Examples -

0 commit comments

Comments
 (0)