1
- name : ' ChatGPT PR Reviewer & Summarizer'
2
- description : ' ChatGPT based PR reviewer and summarizer '
1
+ name : " OpenAI-based PR Reviewer & Summarizer"
2
+ description : " OpenAI- based PR Reviewer and Summarizer "
3
3
branding :
4
- icon : ' aperture'
5
- color : ' orange'
6
- author : ' FluxNinja, Inc.'
4
+ icon : " aperture"
5
+ color : " orange"
6
+ author : " FluxNinja, Inc."
7
7
inputs :
8
8
debug :
9
9
required : false
10
- description : ' Enable debug mode'
11
- default : ' false'
10
+ description : " Enable debug mode"
11
+ default : " false"
12
12
temperature :
13
13
required : false
14
- description : ' Temperature for ChatGPT model'
15
- default : ' 0.0'
14
+ description : " Temperature for GPT model"
15
+ default : " 0.0"
16
16
review_comment_lgtm :
17
17
required : false
18
- description : ' Leave comments even if the patch is LGTM'
19
- default : ' false'
18
+ description : " Leave comments even if the patch is LGTM"
19
+ default : " false"
20
20
path_filters :
21
21
required : false
22
22
description : |
@@ -44,21 +44,16 @@ inputs:
44
44
!**/vendor/**
45
45
system_message :
46
46
required : false
47
- description : ' System message to be sent to ChatGPT '
47
+ description : " System message to be sent to OpenAI "
48
48
default : |
49
49
You are a very experienced software engineer. You are able to thoroughly review code and uncover
50
50
issues, such as bugs, potential data races, livelocks, starvation, suspension, order violation,
51
51
atomicity violation, consistency issues, complexity issues, error handling and so on.
52
52
53
53
We will be doing code reviews today. Please prefer markdown format in your responses.
54
- chatgpt_reverse_proxy :
55
- required : false
56
- description : |
57
- The URL of the chatgpt reverse proxy, see also https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy
58
- default : https://chat.duti.tech/api/conversation
59
54
summarize_beginning :
60
55
required : false
61
- description : ' The prompt for the whole pull request'
56
+ description : " The prompt for the whole pull request"
62
57
default : |
63
58
$system_message
64
59
@@ -79,7 +74,7 @@ inputs:
79
74
Reply "OK" to confirm that you are ready to receive the diffs for summarization.
80
75
summarize_file_diff :
81
76
required : false
82
- description : ' The prompt for each file diff'
77
+ description : " The prompt for each file diff"
83
78
default : |
84
79
Providing diff for `$filename`.
85
80
@@ -93,7 +88,7 @@ inputs:
93
88
```
94
89
summarize :
95
90
required : false
96
- description : ' The prompt for final summarization response'
91
+ description : " The prompt for final summarization response"
97
92
default : |
98
93
This is the end of summarization session. Please provide the final response as follows in
99
94
the `markdown` format with the following content:
@@ -106,7 +101,7 @@ inputs:
106
101
request.
107
102
summarize_release_notes :
108
103
required : false
109
- description : ' The prompt for generating release notes'
104
+ description : " The prompt for generating release notes"
110
105
default : |
111
106
Next, release notes in `markdown` format for this pull request that focuses on the purpose
112
107
of this PR. If needed, you can classify the changes as "New Feature", "Bug fix",
@@ -116,7 +111,7 @@ inputs:
116
111
used as is in our release notes.
117
112
review_beginning :
118
113
required : false
119
- description : ' The beginning prompt of a code review dialog'
114
+ description : " The beginning prompt of a code review dialog"
120
115
default : |
121
116
$system_message
122
117
@@ -128,14 +123,14 @@ inputs:
128
123
129
124
> $description.
130
125
131
- ChatGPT generated summary is as follows,
126
+ OpenAI generated summary is as follows,
132
127
133
128
> $summary
134
129
135
130
Reply "OK" to confirm that you are ready for further instructions.
136
131
review_file :
137
132
required : false
138
- description : ' The prompt for each file'
133
+ description : " The prompt for each file"
139
134
default : |
140
135
Providing `$filename` content as context. Please use this context when reviewing patches.
141
136
@@ -144,7 +139,7 @@ inputs:
144
139
```
145
140
review_file_diff :
146
141
required : false
147
- description : ' The prompt for each file diff'
142
+ description : " The prompt for each file diff"
148
143
default : |
149
144
Providing entire diff for `$filename` as context. Please use this context when reviewing patches.
150
145
@@ -153,7 +148,7 @@ inputs:
153
148
```
154
149
review_patch_begin :
155
150
required : false
156
- description : ' The prompt for each file diff'
151
+ description : " The prompt for each file diff"
157
152
default : |
158
153
Next, I will send you a series of patches, each of them consists of a diff snippet, and you
159
154
need to do a brief code review for every patch, and tell me any bug risk or improvement
@@ -164,13 +159,13 @@ inputs:
164
159
preferred for your responses. Reply "OK" to confirm.
165
160
review_patch :
166
161
required : false
167
- description : ' The prompt for each chunks/patches'
162
+ description : " The prompt for each chunks/patches"
168
163
default : |
169
164
$filename
170
165
171
166
```diff
172
167
$patch
173
168
```
174
169
runs :
175
- using : ' node16'
176
- main : ' dist/index.js'
170
+ using : " node16"
171
+ main : " dist/index.js"
0 commit comments