Skip to content

Commit f398362

Browse files
committed
chore: fix message formatting
1 parent a517394 commit f398362

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/pr-preview.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,21 @@ jobs:
2828
2929
// Only create comment if it doesn't exist
3030
if (!approvalComment) {
31+
const body = `<!-- approval-request-comment -->
32+
## ⚠️ &nbsp;Manual approval required
33+
34+
A repository owner must approve the Docker preview deployment for this PR.
35+
36+
**PR Author:** @${{ github.event.pull_request.user.login }}
37+
**Head SHA:** \`${{ github.event.pull_request.head.sha }}\`
38+
39+
[Review and approve in Actions →](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`;
40+
3141
await github.rest.issues.createComment({
3242
owner: context.repo.owner,
3343
repo: context.repo.repo,
3444
issue_number: context.issue.number,
35-
body: `<!-- approval-request-comment -->
36-
## ⚠️ &nbsp;Manual approval required
37-
38-
A repository owner must approve the Docker preview deployment for this PR.
39-
40-
**PR Author:** @${{ github.event.pull_request.user.login }}
41-
**Head SHA:** \`${{ github.event.pull_request.head.sha }}\`
42-
43-
[Review and approve in Actions →](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`
45+
body
4446
});
4547
}
4648

0 commit comments

Comments
 (0)