This repository was archived by the owner on Mar 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +14
-26
lines changed Expand file tree Collapse file tree 6 files changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ export class Inputs {
3
3
title : string
4
4
description : string
5
5
rawSummary : string
6
- releaseNotes : string
7
6
filename : string
8
7
fileContent : string
9
8
fileDiff : string
@@ -17,7 +16,6 @@ export class Inputs {
17
16
title = 'no title provided' ,
18
17
description = 'no description provided' ,
19
18
rawSummary = '' ,
20
- releaseNotes = '' ,
21
19
filename = '' ,
22
20
fileContent = 'file contents cannot be provided' ,
23
21
fileDiff = 'file diff cannot be provided' ,
@@ -30,7 +28,6 @@ export class Inputs {
30
28
this . title = title
31
29
this . description = description
32
30
this . rawSummary = rawSummary
33
- this . releaseNotes = releaseNotes
34
31
this . filename = filename
35
32
this . fileContent = fileContent
36
33
this . fileDiff = fileDiff
@@ -46,7 +43,6 @@ export class Inputs {
46
43
this . title ,
47
44
this . description ,
48
45
this . rawSummary ,
49
- this . releaseNotes ,
50
46
this . filename ,
51
47
this . fileContent ,
52
48
this . fileDiff ,
@@ -73,9 +69,6 @@ export class Inputs {
73
69
if ( this . rawSummary ) {
74
70
content = content . replace ( '$raw_summary' , this . rawSummary )
75
71
}
76
- if ( this . releaseNotes ) {
77
- content = content . replace ( '$release_notes' , this . releaseNotes )
78
- }
79
72
if ( this . filename ) {
80
73
content = content . replace ( '$filename' , this . filename )
81
74
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class Options {
36
36
openaiRetries = '3' ,
37
37
openaiTimeoutMS = '120000' ,
38
38
openaiConcurrencyLimit = '4' ,
39
- apiBaseUrl = " https://api.openai.com/v1"
39
+ apiBaseUrl = ' https://api.openai.com/v1'
40
40
) {
41
41
this . debug = debug
42
42
this . disableReview = disableReview
Original file line number Diff line number Diff line change @@ -195,6 +195,11 @@ Description:
195
195
$description
196
196
\`\`\`
197
197
198
+ OpenAI generated summary:
199
+ \`\`\`
200
+ $raw_summary
201
+ \`\`\`
202
+
198
203
Content of file prior to changes:
199
204
\`\`\`
200
205
$file_content
Original file line number Diff line number Diff line change @@ -56,9 +56,6 @@ export const handleReviewComment = async (
56
56
inputs . description = commenter . getDescription (
57
57
context . payload . pull_request . body
58
58
)
59
- inputs . releaseNotes = commenter . getReleaseNotes (
60
- context . payload . pull_request . body
61
- )
62
59
}
63
60
64
61
// check if the comment was created and not edited or deleted
Original file line number Diff line number Diff line change @@ -52,9 +52,6 @@ export const codeReview = async (
52
52
inputs . description = commenter . getDescription (
53
53
context . payload . pull_request . body
54
54
)
55
- inputs . releaseNotes = commenter . getReleaseNotes (
56
- context . payload . pull_request . body
57
- )
58
55
}
59
56
60
57
// if the description contains ignore_keyword, skip
@@ -390,7 +387,6 @@ ${filename}: ${summary}
390
387
info ( 'release notes: nothing obtained from openai' )
391
388
} else {
392
389
nextSummarizeIds = releaseNotesIds
393
- inputs . releaseNotes = releaseNotesResponse . replace ( / ( ^ | \n ) > .* / g, '' )
394
390
let message = '### Summary by OpenAI\n\n'
395
391
message += releaseNotesResponse
396
392
try {
You can’t perform that action at this time.
0 commit comments