@@ -242,10 +242,9 @@ export default eventHandler(async (event) => {
242242 checkRunUrl = html_url ! ;
243243 }
244244
245- // 🔍 DEBUG: Log PR commenting decision
246245 const isPRRef = isPullRequest ( workflowData . ref ) ;
247246 const prNumber = Number ( workflowData . ref ) ;
248- console . log ( "🔍 [PUBLISH DEBUG ] PR commenting analysis:" , {
247+ console . log ( "[PUBLISH] PR commenting analysis:" , {
249248 workflowDataRef : workflowData . ref ,
250249 isPRRef,
251250 prNumber,
@@ -256,7 +255,7 @@ export default eventHandler(async (event) => {
256255 if ( isPullRequest ( workflowData . ref ) ) {
257256 let prevComment : OctokitComponents [ "schemas" ] [ "issue-comment" ] ;
258257
259- console . log ( "🔍 [PUBLISH DEBUG ] Fetching comments for PR #" + prNumber ) ;
258+ console . log ( "[PUBLISH] Fetching comments for PR #" + prNumber ) ;
260259
261260 await installation . paginate (
262261 "GET /repos/{owner}/{repo}/issues/{issue_number}/comments" ,
@@ -287,9 +286,7 @@ export default eventHandler(async (event) => {
287286
288287 try {
289288 if ( comment === "update" && prevComment ! ) {
290- console . log (
291- "🔍 [PUBLISH DEBUG] Updating existing comment on PR #" + prNumber ,
292- ) ;
289+ console . log ( "[PUBLISH] Updating existing comment on PR #" + prNumber ) ;
293290 await installation . request (
294291 "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}" ,
295292 {
@@ -312,9 +309,9 @@ export default eventHandler(async (event) => {
312309 ) ;
313310 } else {
314311 console . log (
315- "🔍 [PUBLISH DEBUG ] Creating NEW comment on PR #" +
316- prNumber +
317- " (SHOULD BE CURRENT PR, NOT OLD!)" ,
312+ "[PUBLISH] Creating NEW comment on PR #" +
313+ prNumber +
314+ " (SHOULD BE CURRENT PR, NOT OLD!)" ,
318315 ) ;
319316 await installation . request (
320317 "POST /repos/{owner}/{repo}/issues/{issue_number}/comments" ,
@@ -337,9 +334,7 @@ export default eventHandler(async (event) => {
337334 } ,
338335 ) ;
339336 }
340- console . log (
341- "🔍 [PUBLISH DEBUG] Comment posted successfully to PR #" + prNumber ,
342- ) ;
337+ console . log ( "[PUBLISH] Comment posted successfully to PR #" + prNumber ) ;
343338 } catch ( error ) {
344339 console . error ( "failed to create/update comment" , error , permissions ) ;
345340 }
0 commit comments