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 {
33 title : string
44 description : string
55 rawSummary : string
6- releaseNotes : string
76 filename : string
87 fileContent : string
98 fileDiff : string
@@ -17,7 +16,6 @@ export class Inputs {
1716 title = 'no title provided' ,
1817 description = 'no description provided' ,
1918 rawSummary = '' ,
20- releaseNotes = '' ,
2119 filename = '' ,
2220 fileContent = 'file contents cannot be provided' ,
2321 fileDiff = 'file diff cannot be provided' ,
@@ -30,7 +28,6 @@ export class Inputs {
3028 this . title = title
3129 this . description = description
3230 this . rawSummary = rawSummary
33- this . releaseNotes = releaseNotes
3431 this . filename = filename
3532 this . fileContent = fileContent
3633 this . fileDiff = fileDiff
@@ -46,7 +43,6 @@ export class Inputs {
4643 this . title ,
4744 this . description ,
4845 this . rawSummary ,
49- this . releaseNotes ,
5046 this . filename ,
5147 this . fileContent ,
5248 this . fileDiff ,
@@ -73,9 +69,6 @@ export class Inputs {
7369 if ( this . rawSummary ) {
7470 content = content . replace ( '$raw_summary' , this . rawSummary )
7571 }
76- if ( this . releaseNotes ) {
77- content = content . replace ( '$release_notes' , this . releaseNotes )
78- }
7972 if ( this . filename ) {
8073 content = content . replace ( '$filename' , this . filename )
8174 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class Options {
3636 openaiRetries = '3' ,
3737 openaiTimeoutMS = '120000' ,
3838 openaiConcurrencyLimit = '4' ,
39- apiBaseUrl = " https://api.openai.com/v1"
39+ apiBaseUrl = ' https://api.openai.com/v1'
4040 ) {
4141 this . debug = debug
4242 this . disableReview = disableReview
Original file line number Diff line number Diff line change @@ -195,6 +195,11 @@ Description:
195195$description
196196\`\`\`
197197
198+ OpenAI generated summary:
199+ \`\`\`
200+ $raw_summary
201+ \`\`\`
202+
198203Content of file prior to changes:
199204\`\`\`
200205$file_content
Original file line number Diff line number Diff line change @@ -56,9 +56,6 @@ export const handleReviewComment = async (
5656 inputs . description = commenter . getDescription (
5757 context . payload . pull_request . body
5858 )
59- inputs . releaseNotes = commenter . getReleaseNotes (
60- context . payload . pull_request . body
61- )
6259 }
6360
6461 // 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 (
5252 inputs . description = commenter . getDescription (
5353 context . payload . pull_request . body
5454 )
55- inputs . releaseNotes = commenter . getReleaseNotes (
56- context . payload . pull_request . body
57- )
5855 }
5956
6057 // if the description contains ignore_keyword, skip
@@ -390,7 +387,6 @@ ${filename}: ${summary}
390387 info ( 'release notes: nothing obtained from openai' )
391388 } else {
392389 nextSummarizeIds = releaseNotesIds
393- inputs . releaseNotes = releaseNotesResponse . replace ( / ( ^ | \n ) > .* / g, '' )
394390 let message = '### Summary by OpenAI\n\n'
395391 message += releaseNotesResponse
396392 try {
You can’t perform that action at this time.
0 commit comments