@@ -136,7 +136,7 @@ export default eventHandler(async (event) => {
136136 const stream = file . stream ( ) ;
137137 return setItemStream ( event , useTemplatesBucket . base , uuid , stream ) ;
138138 }
139- return null
139+ return null ;
140140 } ) ,
141141 ) ;
142142
@@ -233,43 +233,43 @@ export default eventHandler(async (event) => {
233233 if ( comment !== "off" ) {
234234 await ( comment === "update" && prevComment !
235235 ? installation . request (
236- "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}" ,
237- {
238- owner : workflowData . owner ,
239- repo : workflowData . repo ,
240- comment_id : prevComment . id ,
241- body : generatePullRequestPublishMessage (
242- origin ,
243- templatesHtmlMap ,
244- packagesWithoutPrefix ,
245- workflowData ,
246- compact ,
247- onlyTemplates ,
248- checkRunUrl ,
249- packageManager ,
250- "ref" ,
251- ) ,
252- } ,
253- )
236+ "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}" ,
237+ {
238+ owner : workflowData . owner ,
239+ repo : workflowData . repo ,
240+ comment_id : prevComment . id ,
241+ body : generatePullRequestPublishMessage (
242+ origin ,
243+ templatesHtmlMap ,
244+ packagesWithoutPrefix ,
245+ workflowData ,
246+ compact ,
247+ onlyTemplates ,
248+ checkRunUrl ,
249+ packageManager ,
250+ "ref" ,
251+ ) ,
252+ } ,
253+ )
254254 : installation . request (
255- "POST /repos/{owner}/{repo}/issues/{issue_number}/comments" ,
256- {
257- owner : workflowData . owner ,
258- repo : workflowData . repo ,
259- issue_number : Number ( workflowData . ref ) ,
260- body : generatePullRequestPublishMessage (
261- origin ,
262- templatesHtmlMap ,
263- packagesWithoutPrefix ,
264- workflowData ,
265- compact ,
266- onlyTemplates ,
267- checkRunUrl ,
268- packageManager ,
269- comment === "update" ? "ref" : "sha" ,
270- ) ,
271- } ,
272- ) ) ;
255+ "POST /repos/{owner}/{repo}/issues/{issue_number}/comments" ,
256+ {
257+ owner : workflowData . owner ,
258+ repo : workflowData . repo ,
259+ issue_number : Number ( workflowData . ref ) ,
260+ body : generatePullRequestPublishMessage (
261+ origin ,
262+ templatesHtmlMap ,
263+ packagesWithoutPrefix ,
264+ workflowData ,
265+ compact ,
266+ onlyTemplates ,
267+ checkRunUrl ,
268+ packageManager ,
269+ comment === "update" ? "ref" : "sha" ,
270+ ) ,
271+ } ,
272+ ) ) ;
273273 }
274274 }
275275
0 commit comments