Skip to content

Commit 8596862

Browse files
committed
Sync comment workflow with trunk to test.
1 parent 32da441 commit 8596862

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/pull-request-comments.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ jobs:
190190
issues: write
191191
pull-requests: write
192192
if: >
193-
github.repository == 'WordPress/wordpress-develop' &&
194193
github.event.workflow_run.event == 'pull_request' &&
195194
github.event.workflow_run.name == 'Check Built Files (PRs)' &&
196195
github.event.workflow_run.conclusion == 'success'
@@ -269,7 +268,7 @@ jobs:
269268
}
270269
};
271270
272-
commentInfo.body = '## Build Server Comparison';
271+
commentInfo.body = "## Build Server Comparison\n\n";
273272
274273
// Post or update the comment.
275274
if ( fileChanges.trim() === '' ) {
@@ -313,7 +312,7 @@ jobs:
313312
</details>`;
314313
}
315314
316-
commentInfo.body += `[Download the complete .diff file from the workflow run](https://github.com/${ context.repo.owner }/${ context.repo.repo }/actions/runs/${ context.payload.workflow_run.id }).`;
315+
commentInfo.body += `\n\n[Download the complete .diff file from the workflow run](https://github.com/${ context.repo.owner }/${ context.repo.repo }/actions/runs/${ context.payload.workflow_run.id }).`;
317316
}
318317
319318
if ( commentInfo.comment_id ) {

0 commit comments

Comments
 (0)