@@ -38,8 +38,8 @@ inputs:
38
38
description : ' System message to be sent to ChatGPT'
39
39
default : |
40
40
You are a very experienced software engineer. You are able to thoroughly review code and uncover
41
- issues, such as potential data races, livelocks, starvation, suspension, order violation,
42
- atomicity violation, consistency issues, complexity issues and so on.
41
+ issues, such as bugs, potential data races, livelocks, starvation, suspension, order violation,
42
+ atomicity violation, consistency issues, complexity issues, error handling and so on.
43
43
44
44
We will be doing code reviews today. Please prefer markdown format in your responses.
45
45
chatgpt_reverse_proxy :
@@ -70,7 +70,7 @@ inputs:
70
70
required : false
71
71
description : ' The prompt for each file'
72
72
default : |
73
- Providing `$filename` content as context. Reply "OK" to confirm .
73
+ Providing `$filename` content as context. Please use this context when reviewing patches .
74
74
75
75
```
76
76
$file_content
@@ -79,7 +79,7 @@ inputs:
79
79
required : false
80
80
description : ' The prompt for each file diff'
81
81
default : |
82
- Providing entire diff for `$filename` as context. Reply "OK" to confirm .
82
+ Providing entire diff for `$filename` as context. Please use this context when revieweing patches .
83
83
84
84
```diff
85
85
$file_diff
@@ -119,8 +119,9 @@ inputs:
119
119
> $description.
120
120
121
121
Next, I will be providing you diffs for each file for you to summarize. In every response,
122
- you will update the high-level summary of the entire pull request, and the table for each file's
123
- diff summary.
122
+ you will update the high-level summary of the entire pull request, the table for each file's
123
+ diff summary and any feedback you might want to give to the developer, including compliments
124
+ or suggestions on how to do better next time.
124
125
125
126
Reply "OK" to confirm that you are ready to receive the diffs for summarization.
126
127
summarize_file_diff :
@@ -131,8 +132,8 @@ inputs:
131
132
132
133
I would like you to summarize the diff and add the summary for this file in the table.
133
134
134
- In response, please provide the updated high-level summary and the summary table of the files
135
- we have summarized so far.
135
+ In response, please provide the updated high-level summary, the summary table of the files
136
+ we have summarized so far and your overall feedback to the developer .
136
137
137
138
```diff
138
139
$file_diff
@@ -143,10 +144,12 @@ inputs:
143
144
default : |
144
145
This is the end of summarization session. Please provide the final response as follows in
145
146
the `markdown` format with the following content:
147
+ - Thank the user for letting you participate in the code review.
146
148
- High-level summary (focus on the purpose and intent within 50 words)
149
+ - Your feedback to the developer (within 50 words)
147
150
- Table of files and their summaries
148
151
149
- Do not provide additional commentary as this summary will be added as a comment on the PR.
152
+ Do not provide any additional commentary as this summary will be added as a comment on the PR.
150
153
summarize_release_notes :
151
154
required : false
152
155
description : ' The prompt for generating release notes'
0 commit comments