@@ -211,16 +211,15 @@ async function checkCommitsForWorkItems(
211211 issue_number : pullNumber
212212 } ) ;
213213
214- const existingFailureComment = comments . find ( comment =>
215- comment . body ?. includes ( COMMENT_MARKERS . COMMITS_NOT_LINKED )
216- ) ;
214+ const existingFailureComment = comments . find ( comment => comment . body ?. includes ( COMMENT_MARKERS . COMMITS_NOT_LINKED ) ) ;
217215
218216 if ( existingFailureComment ) {
219217 console . log ( `Found existing commit failure comment: ${ existingFailureComment . id } ` ) ;
220218 const currentDateTime = new Date ( ) . toISOString ( ) . replace ( 'T' , ' ' ) . substring ( 0 , 19 ) ;
221219 const commentExtra = `\n\n<details>\n<summary>Workflow run details</summary>\n\n[View workflow run](${ context . payload . repository ?. html_url } /actions/runs/${ context . runId } ) - _Last ran: ${ currentDateTime } UTC_</details>` ;
222220 const successCommentCombined =
223- `${ COMMENT_MARKERS . COMMITS_NOT_LINKED } \n:white_check_mark: All commits in this pull request are now linked to work items.` + commentExtra ;
221+ `${ COMMENT_MARKERS . COMMITS_NOT_LINKED } \n:white_check_mark: All commits in this pull request are now linked to work items.` +
222+ commentExtra ;
224223
225224 console . log ( '... attempting to update the commit failure comment to success' ) ;
226225 await octokit . rest . issues . updateComment ( {
@@ -309,7 +308,8 @@ async function checkCommitsForWorkItems(
309308 const currentDateTime = new Date ( ) . toISOString ( ) . replace ( 'T' , ' ' ) . substring ( 0 , 19 ) ;
310309 const commentExtra = `\n\n<details>\n<summary>Workflow run details</summary>\n\n[View workflow run](${ context . payload . repository ?. html_url } /actions/runs/${ context . runId } ) - _Last ran: ${ currentDateTime } UTC_</details>` ;
311310 const successCommentCombined =
312- `${ COMMENT_MARKERS . INVALID_WORK_ITEMS } \n:white_check_mark: All work items referenced in this pull request now exist in Azure DevOps.` + commentExtra ;
311+ `${ COMMENT_MARKERS . INVALID_WORK_ITEMS } \n:white_check_mark: All work items referenced in this pull request now exist in Azure DevOps.` +
312+ commentExtra ;
313313
314314 console . log ( '... attempting to update the invalid work item comment to success' ) ;
315315 await octokit . rest . issues . updateComment ( {
0 commit comments