@@ -145,7 +145,7 @@ async function main() {
145145 manualCommands = manualCommandsMatch [ 1 ] . trim ( ) ;
146146 }
147147
148- commentBody = `🔒 **GitHub App Permission Issue**
148+ commentBody = `🔒 **[Step 2/4] GitHub App Permission Issue**
149149
150150The patch creation failed due to insufficient GitHub App permissions for creating workflow files.
151151
@@ -169,7 +169,7 @@ After running these commands, you can re-run the patch workflow.`
169169 const prMatch = logContent . match ( / F o u n d e x i s t i n g P R # ( \d + ) : ( .* ) / ) ;
170170 if ( prMatch ) {
171171 const [ , prNumber , prUrl ] = prMatch ;
172- commentBody = `ℹ️ **Patch PR already exists!**
172+ commentBody = `ℹ️ **[Step 2/4] Patch PR already exists!**
173173
174174A patch PR for this change already exists: [#${ prNumber } ](${ prUrl } ).
175175
@@ -185,7 +185,7 @@ A patch PR for this change already exists: [#${prNumber}](${prUrl}).
185185 const branchMatch = logContent . match ( / H o t f i x b r a n c h ( .* ) a l r e a d y e x i s t s / ) ;
186186 if ( branchMatch ) {
187187 const [ , branch ] = branchMatch ;
188- commentBody = `ℹ️ **Patch branch exists but no PR found!**
188+ commentBody = `ℹ️ **[Step 2/4] Patch branch exists but no PR found!**
189189
190190A patch branch [\`${ branch } \`](https://github.com/${ repository } /tree/${ branch } ) exists but has no open PR.
191191
@@ -213,7 +213,7 @@ A patch branch [\`${branch}\`](https://github.com/${repository}/tree/${branch})
213213 logContent . includes ( 'Cherry-pick has conflicts' ) ||
214214 logContent . includes ( '[CONFLICTS]' ) ;
215215
216- commentBody = `🚀 **Patch PR Created!**
216+ commentBody = `🚀 **[Step 2/4] Patch PR Created!**
217217
218218**📋 Patch Details:**
219219- **Environment**: \`${ environment } \`
@@ -228,7 +228,8 @@ ${hasConflicts ? '3' : '2'}. Once merged, the patch release will automatically t
228228${ hasConflicts ? '4' : '3' } . You'll receive updates here when the release completes
229229
230230**🔗 Track Progress:**
231- - [View hotfix PR #${ mockPrNumber } ](${ mockPrUrl } )` ;
231+ - [View hotfix PR #${ mockPrNumber } ](${ mockPrUrl } )
232+ - [This patch creation workflow run](https://github.com/${ repository } /actions/runs/${ runId } )` ;
232233 } else if ( hasGitHubCli ) {
233234 // Find the actual PR for the new branch using gh CLI
234235 try {
@@ -269,7 +270,7 @@ ${hasConflicts ? '4' : '3'}. You'll receive updates here when the release comple
269270 logContent . includes ( 'Cherry-pick has conflicts' ) ||
270271 pr . title . includes ( '[CONFLICTS]' ) ;
271272
272- commentBody = `🚀 **Patch PR Created!**
273+ commentBody = `🚀 **[Step 2/4] Patch PR Created!**
273274
274275**📋 Patch Details:**
275276- **Environment**: \`${ environment } \`
@@ -284,10 +285,11 @@ ${hasConflicts ? '3' : '2'}. Once merged, the patch release will automatically t
284285${ hasConflicts ? '4' : '3' } . You'll receive updates here when the release completes
285286
286287**🔗 Track Progress:**
287- - [View hotfix PR #${ pr . number } ](${ pr . url } )` ;
288+ - [View hotfix PR #${ pr . number } ](${ pr . url } )
289+ - [This patch creation workflow run](https://github.com/${ repository } /actions/runs/${ runId } )` ;
288290 } else {
289291 // Fallback if PR not found yet
290- commentBody = `🚀 **Patch PR Created!**
292+ commentBody = `🚀 **[Step 2/4] Patch PR Created!**
291293
292294The patch release PR for this change has been created on branch [\`${ branch } \`](https://github.com/${ repository } /tree/${ branch } ).
293295
@@ -296,23 +298,25 @@ The patch release PR for this change has been created on branch [\`${branch}\`](
2962982. Once merged, the patch release will automatically trigger
297299
298300**🔗 Links:**
299- - [View all patch PRs](https://github.com/${ repository } /pulls?q=is%3Apr+is%3Aopen+label%3Apatch)` ;
301+ - [View all patch PRs](https://github.com/${ repository } /pulls?q=is%3Apr+is%3Aopen+label%3Apatch)
302+ - [This patch creation workflow run](https://github.com/${ repository } /actions/runs/${ runId } )` ;
300303 }
301304 } catch ( error ) {
302305 console . log ( 'Error finding PR for branch:' , error . message ) ;
303306 // Fallback
304- commentBody = `🚀 **Patch PR Created!**
307+ commentBody = `🚀 **[Step 2/4] Patch PR Created!**
305308
306309The patch release PR for this change has been created.
307310
308311**🔗 Links:**
309- - [View all patch PRs](https://github.com/${ repository } /pulls?q=is%3Apr+is%3Aopen+label%3Apatch)` ;
312+ - [View all patch PRs](https://github.com/${ repository } /pulls?q=is%3Apr+is%3Aopen+label%3Apatch)
313+ - [This patch creation workflow run](https://github.com/${ repository } /actions/runs/${ runId } )` ;
310314 }
311315 }
312316 }
313317 } else {
314318 // Failure
315- commentBody = `❌ **Patch creation failed!**
319+ commentBody = `❌ **[Step 2/4] Patch creation failed!**
316320
317321There was an error creating the patch release.
318322
@@ -326,7 +330,7 @@ There was an error creating the patch release.
326330 }
327331
328332 if ( ! commentBody ) {
329- commentBody = `❌ **Patch creation failed!**
333+ commentBody = `❌ **[Step 2/4] Patch creation failed!**
330334
331335No output was generated during patch creation.
332336
0 commit comments