@@ -94,41 +94,44 @@ inputs:
94
94
required : false
95
95
description : ' The prompt for the whole pull request'
96
96
default : |
97
- GitHub pull request has the title "$title" and the following description:
97
+ GitHub pull request has the title -
98
+ `$title`
98
99
100
+ Here is the description -
99
101
```
100
102
$description
101
103
```
102
- I am providing diff for `$filename` below. I would like you to summarize
103
- the diff within 50 words.
104
104
105
+ Here is the diff for `$filename` -
105
106
```diff
106
107
$file_diff
107
108
```
109
+
110
+ I would like you to summarize the diff within 50 words.
108
111
summarize :
109
112
required : false
110
113
description : ' The prompt for final summarization response'
111
114
default : |
112
- This is the end of the summarization session. Below is the summary you have
113
- generated so far for each file.
114
-
115
+ Here is the summary of changes you have generated for each file -
115
116
```
116
117
$summary
117
118
```
118
119
119
- Please provide your final response in the `markdown` format with
120
- the following content:
120
+ Provide your final response in the `markdown` format with
121
+ the following content -
121
122
- Thank the user for letting you participate in the code review.
122
123
- High-level summary (comment on the overall change instead of
123
124
specific files within 80 words)
124
125
- Table of files and their summaries. You can group files with
125
126
similar changes together into one row to save space.
126
127
127
128
Avoid additional commentary as this summary will be added as a
128
- comment on the pull request.
129
+ comment on the GitHub pull request.
129
130
summarize_release_notes :
130
131
required : false
131
- description : ' The prompt for generating release notes'
132
+ description :
133
+ ' The prompt for generating release notes in the same chat as summarize
134
+ stage'
132
135
default : |
133
136
Create concise release notes in `markdown` format for this pull request,
134
137
focusing on its purpose and user story. You can classify the changes as
@@ -145,33 +148,37 @@ inputs:
145
148
required : false
146
149
description : ' The prompt for each file'
147
150
default : |
148
- GitHub pull request has the title "$title" and the following description:
151
+ GitHub pull request has the title -
152
+ `$title`
149
153
154
+ Here is the description -
150
155
```
151
156
$description
152
157
```
153
158
154
- The OpenAI-generated summary is as follows:
155
-
159
+ Here is the OpenAI generated summary -
156
160
```
157
161
$summary
158
162
```
159
163
160
- Content of `$filename` is follows.
161
-
164
+ Here is the content of file `$filename` -
162
165
```
163
166
$file_content
164
167
```
165
168
166
- Format for changes and review comments on line ranges.
167
- `---` separator is used.
168
-
169
+ Format for changes and review comments (if any)
170
+ on line ranges -
169
171
<start_line-end_line>:
170
172
```diff
171
173
<diff_hunk>
172
174
```
173
175
```text
174
- <existing review comments on diff_hunk, if any>
176
+ <existing review comments>
177
+ ```
178
+ ---
179
+ <start_line-end_line>:
180
+ ```diff
181
+ <diff_hunk>
175
182
```
176
183
---
177
184
...
@@ -181,21 +188,30 @@ inputs:
181
188
displaying added, removed, and unchanged lines with
182
189
"+" or "-" prefixes and surrounding context lines.
183
190
184
- Diff hunks for review are below -
185
-
191
+ Changes for review -
186
192
$patches
187
193
188
194
Your review must consist of comments in the below format
189
195
with a separator between review comments. Any other
190
196
commentary outside of this format will be ignored and will not
191
197
be read by the parser. Make sure to use the line numbers exactly
192
- as provided above.
193
-
198
+ as provided above -
194
199
<start_line-end_line>:
195
200
<review>
196
201
---
202
+ <start_line-end_line>:
203
+ <review>
204
+ ```suggestion
205
+ <replacement code from start_line>
206
+ ```
207
+ ---
197
208
...
198
209
210
+ The replacement code you suggest must not be in the diff format and
211
+ must the exact code that will replace existing code from the start_line.
212
+ The suggestion must include context lines from diff hunk even if they
213
+ are unchanged.
214
+
199
215
Reflect on the provided code at least 3 times to identify any
200
216
bug risks or provide improvement suggestions in these diff hunks.
201
217
You will point out potential issues such as security, logic errors,
@@ -213,52 +229,42 @@ inputs:
213
229
required : false
214
230
description : ' Prompt for comment'
215
231
default : |
216
- A comment was made on a review for a diff hunk on file
217
- `$filename`. I would like you to follow the instructions
218
- in that comment.
219
-
220
- If possible, I will provide you the file and the entire diff
221
- to help provide overall context for your response.
232
+ A comment was made on a GitHub pull request review for a
233
+ diff hunk on file `$filename`. I would like you to follow
234
+ the instructions in that comment.
222
235
223
- The pull request has the title "$title" and the following
224
- description:
236
+ Here is the title -
237
+ `$title`
225
238
239
+ Here is the description-
226
240
```
227
241
$description
228
242
```
229
243
230
- The OpenAI-generated summary is as follows:
231
-
244
+ Here is the OpenAI generated summary -
232
245
```
233
246
$summary
234
247
```
235
248
236
- Here is the content of file.
237
-
249
+ Here is the content of file -
238
250
```
239
251
$file_content
240
252
```
241
253
242
- Here is the entire diff.
243
-
254
+ Here is the entire diff -
244
255
```diff
245
256
$file_diff
246
257
```
247
258
248
- I would like you to follow the instructions in the new
249
- comment made on a conversation chain on a code review diff.
250
-
251
- Diff being commented on:
252
-
259
+ Here is diff being commented on -
253
260
```diff
254
261
$diff
255
262
```
256
263
257
- The format of the conversation chain is:
264
+ The format of the conversation chain is -
258
265
`user: comment`
259
266
260
- Conversation chain (including the new comment):
261
-
267
+ Conversation chain (including the new comment) -
262
268
```
263
269
$comment_chain
264
270
```
@@ -273,8 +279,7 @@ inputs:
273
279
In your reply, please make sure to begin the reply by tagging the user
274
280
with "@user".
275
281
276
- The comment/request that you need to directly reply to:
277
-
282
+ The comment/request that you need to directly reply to -
278
283
```
279
284
$comment
280
285
```
0 commit comments