From cee292003b9198d3602bae0f91d9b63603642b02 Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Wed, 11 Jun 2025 12:05:27 -0700 Subject: [PATCH 1/3] Update doc-preview-comment.yml --- .github/workflows/doc-preview-comment.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc-preview-comment.yml b/.github/workflows/doc-preview-comment.yml index aac8748ae8..c3c5efff6b 100644 --- a/.github/workflows/doc-preview-comment.yml +++ b/.github/workflows/doc-preview-comment.yml @@ -1,9 +1,14 @@ name: "Docs preview comment" on: - pull_request: + pull_request_target: types: [opened, reopened, synchronize] +permissions: + contents: read + issues: write + pull-requests: write + jobs: preview-links: runs-on: ubuntu-latest From 187e91344d672ffbcda802dfa25a84a6026cf04a Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Wed, 11 Jun 2025 12:06:57 -0700 Subject: [PATCH 2/3] temporarily comment out line to test --- .github/workflows/doc-preview-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-preview-comment.yml b/.github/workflows/doc-preview-comment.yml index c3c5efff6b..c131e4af0c 100644 --- a/.github/workflows/doc-preview-comment.yml +++ b/.github/workflows/doc-preview-comment.yml @@ -42,7 +42,7 @@ jobs: return `- [\`${f.filename}\`](${base}/${p})`; }); - if (!links.length) return; // nothing to do + // if (!links.length) return; // nothing to do // 3) Build the comment body const body = [ From ee7e10428bc44fd09ace755dd05662e6efee2020 Mon Sep 17 00:00:00 2001 From: Brandon Morelli Date: Wed, 11 Jun 2025 12:08:19 -0700 Subject: [PATCH 3/3] Update doc-preview-comment.yml --- .github/workflows/doc-preview-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-preview-comment.yml b/.github/workflows/doc-preview-comment.yml index c131e4af0c..c3c5efff6b 100644 --- a/.github/workflows/doc-preview-comment.yml +++ b/.github/workflows/doc-preview-comment.yml @@ -42,7 +42,7 @@ jobs: return `- [\`${f.filename}\`](${base}/${p})`; }); - // if (!links.length) return; // nothing to do + if (!links.length) return; // nothing to do // 3) Build the comment body const body = [