From 85a03b20018557ccd04dc42bdf2d113323a1f00f Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:44:34 +0000 Subject: [PATCH 1/5] feat: use --id flag with branch name for stable preview URLs Co-Authored-By: kenny --- .github/workflows/preview-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index 15ed940..c3577e4 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -27,7 +27,7 @@ jobs: env: FERN_TOKEN: ${{ secrets.FERN_TOKEN }} run: | - OUTPUT=$(fern generate --docs --preview 2>&1) || true + OUTPUT=$(fern generate --docs --preview --id ${{ github.head_ref }} 2>&1) || true echo "$OUTPUT" URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') echo "preview_url=$URL" >> $GITHUB_OUTPUT From be8e82f9443a33fbd82e95914fadb994bcf3957e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:45:34 +0000 Subject: [PATCH 2/5] feat: use --id flag with branch name for stable preview URLs Co-Authored-By: kenny --- .github/workflows/preview-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index c3577e4..15ed940 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -27,7 +27,7 @@ jobs: env: FERN_TOKEN: ${{ secrets.FERN_TOKEN }} run: | - OUTPUT=$(fern generate --docs --preview --id ${{ github.head_ref }} 2>&1) || true + OUTPUT=$(fern generate --docs --preview 2>&1) || true echo "$OUTPUT" URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') echo "preview_url=$URL" >> $GITHUB_OUTPUT From dcd08cd79c050201ce477557b6fc981b00d549da Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 20:46:50 +0000 Subject: [PATCH 3/5] feat: use --id flag with branch name for stable preview URLs Co-Authored-By: kenny --- .github/workflows/preview-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index 15ed940..d1bc5d9 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -27,7 +27,7 @@ jobs: env: FERN_TOKEN: ${{ secrets.FERN_TOKEN }} run: | - OUTPUT=$(fern generate --docs --preview 2>&1) || true + OUTPUT=$(fern generate --docs --preview --id "${{ github.head_ref }}" 2>&1) || true echo "$OUTPUT" URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') echo "preview_url=$URL" >> $GITHUB_OUTPUT From 39f5dddf9abcbdaeb7c24e41cbdb3eafcbc0e32a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 21:02:55 +0000 Subject: [PATCH 4/5] fix: prevent shell injection by using env var for head_ref Co-Authored-By: kenny --- .github/workflows/preview-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index d1bc5d9..e4138a9 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -26,8 +26,9 @@ jobs: id: generate-docs env: FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + HEAD_REF: ${{ github.head_ref }} run: | - OUTPUT=$(fern generate --docs --preview --id "${{ github.head_ref }}" 2>&1) || true + OUTPUT=$(fern generate --docs --preview --id "$HEAD_REF" 2>&1) || true echo "$OUTPUT" URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') echo "preview_url=$URL" >> $GITHUB_OUTPUT From 8847469250db37993cd7fe70f3c4bfa59fb3e7b2 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 21:04:50 +0000 Subject: [PATCH 5/5] chore: bump fern CLI to 4.35.0 for --id flag support Co-Authored-By: kenny --- fern/fern.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/fern.config.json b/fern/fern.config.json index 46548d7..9632e21 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "plantstore", - "version": "4.15.5" + "version": "4.35.0" }