File tree Expand file tree Collapse file tree
packages/app/server/routes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -293,6 +293,20 @@ export default eventHandler(async (event) => {
293293 } ,
294294 ) ;
295295
296+ const body = generatePullRequestPublishMessage (
297+ origin ,
298+ templatesHtmlMap ,
299+ packagesWithoutPrefix ,
300+ workflowData ,
301+ compact ,
302+ onlyTemplates ,
303+ checkRunUrl ,
304+ packageManager ,
305+ commentWithSha || comment !== "update" ? "sha" : "ref" ,
306+ bin ,
307+ commentWithDev ,
308+ ) ;
309+
296310 try {
297311 if ( comment === "update" && prevComment ! ) {
298312 await installation . request (
@@ -301,19 +315,7 @@ export default eventHandler(async (event) => {
301315 owner : workflowData . owner ,
302316 repo : workflowData . repo ,
303317 comment_id : prevComment . id ,
304- body : generatePullRequestPublishMessage (
305- origin ,
306- templatesHtmlMap ,
307- packagesWithoutPrefix ,
308- workflowData ,
309- compact ,
310- onlyTemplates ,
311- checkRunUrl ,
312- packageManager ,
313- commentWithSha ? "sha" : "ref" ,
314- bin ,
315- commentWithDev ,
316- ) ,
318+ body,
317319 } ,
318320 ) ;
319321 } else {
@@ -323,19 +325,7 @@ export default eventHandler(async (event) => {
323325 owner : workflowData . owner ,
324326 repo : workflowData . repo ,
325327 issue_number : Number ( workflowData . ref ) ,
326- body : generatePullRequestPublishMessage (
327- origin ,
328- templatesHtmlMap ,
329- packagesWithoutPrefix ,
330- workflowData ,
331- compact ,
332- onlyTemplates ,
333- checkRunUrl ,
334- packageManager ,
335- comment === "update" ? "ref" : "sha" ,
336- bin ,
337- commentWithDev ,
338- ) ,
328+ body,
339329 } ,
340330 ) ;
341331 }
You can’t perform that action at this time.
0 commit comments