From d08424f03bb3616ded40c45e584bc12082b52efd Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:27:35 +0000 Subject: [PATCH] docs: update PR preview workflow examples with branded comment design Co-Authored-By: ryanstep --- .../preview-changes-locally.mdx | 40 +++++++++++++++++-- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx b/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx index 666289bf55..8fb5c9c9b7 100644 --- a/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx +++ b/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx @@ -194,14 +194,30 @@ jobs: - name: Create comment content run: | - echo ":herb: **Preview your docs:** <${{ steps.generate-docs.outputs.preview_url }}>" > comment.md + PREVIEW_URL="${{ steps.generate-docs.outputs.preview_url }}" + cat > comment.md << EOF +
+ Fern +

✅ Preview Ready

+ Visit Preview → +
+ + --- + EOF if [ -n "${{ steps.page-links.outputs.page_links }}" ]; then echo "" >> comment.md - echo "Here are the markdown pages you've updated:" >> comment.md + echo "
" >> comment.md + echo "📄 Changed pages" >> comment.md + echo "" >> comment.md echo "${{ steps.page-links.outputs.page_links }}" >> comment.md + echo "" >> comment.md + echo "
" >> comment.md + echo "" >> comment.md fi + echo '🌿 Deployed with Fern' >> comment.md + - name: Post PR comment uses: thollander/actions-comment-pull-request@v2.4.3 with: @@ -287,14 +303,30 @@ jobs: - name: Create comment content run: | - echo ":herb: **Preview your docs:** <${{ steps.generate-docs.outputs.preview_url }}>" > comment.md + PREVIEW_URL="${{ steps.generate-docs.outputs.preview_url }}" + cat > comment.md << EOF +
+ Fern +

✅ Preview Ready

+ Visit Preview → +
+ + --- + EOF if [ -n "${{ steps.page-links.outputs.page_links }}" ]; then echo "" >> comment.md - echo "Here are the markdown pages you've updated:" >> comment.md + echo "
" >> comment.md + echo "📄 Changed pages" >> comment.md + echo "" >> comment.md echo "${{ steps.page-links.outputs.page_links }}" >> comment.md + echo "" >> comment.md + echo "
" >> comment.md + echo "" >> comment.md fi + echo '🌿 Deployed with Fern' >> comment.md + - name: Post PR comment uses: thollander/actions-comment-pull-request@v2.4.3 with: