You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Exit early if we've already posted a comment for this PR to avoid duplicates
99
+
if (existingComment) {
100
+
console.log("Preview link already posted on this PR. Skipping.");
101
+
return;
102
+
}
103
+
104
+
// Create the comment since it's the first deployment for this PR
105
+
await github.rest.issues.createComment({
89
106
owner: context.repo.owner,
90
107
repo: context.repo.repo,
91
-
body: `🚀 **Cloudflare Preview Ready!**\n\n🔎 View Preview: ${deployUrl}\n\n*(Note: It may take a minute or two for Cloudflare to finish deploying the branch)*`
108
+
issue_number: prNumber,
109
+
body: `${marker}\n🚀 **Cloudflare Preview Ready!**\n\n🔎 View Preview: ${deployUrl}\n\n*(Note: Subsequent pushes to this PR will automatically update the preview at this same URL)*`
0 commit comments