Skip to content

Commit 69e56b9

Browse files
committed
chore(azure-preview-workflow): include title in branch preview comment
1 parent 366ab7e commit 69e56b9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/scripts/build-preview-urls-comment.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ export const buildPreviewURLComment = (prNumber) => {
1717
const prHash = `pr-${prNumber}`;
1818
const baseUrl = 'https://spectrumcss.z13.web.core.windows.net';
1919

20-
return `PR #${prNumber} has been deployed to Azure Blob Storage: ${baseUrl}/${prHash}/index.html.`;
20+
return `## 📚 Branch preview
21+
22+
PR #${prNumber} has been deployed to Azure Blob Storage: [${baseUrl}/${prHash}/index.html](${baseUrl}/${prHash}/index.html).`;
23+
2124
};

.github/workflows/publish-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
const { commentOrUpdate } = await import('${{ github.workspace }}/.github/scripts/comment-or-update.js');
109109
const prNumber = context.payload.pull_request.number;
110110
const body = buildPreviewURLComment(prNumber);
111-
commentOrUpdate(github, context, '## 📚 Branch Preview', body);
111+
commentOrUpdate(github, context, '## 📚 Branch preview', body);
112112
113113
close_pull_request_job:
114114
if: github.event_name == 'pull_request' && github.event.action == 'closed'

0 commit comments

Comments
 (0)