From a5072a11cb9ecc741c03d4f28ecd99f91f068d69 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 28 Jan 2025 14:37:17 +0100 Subject: [PATCH 1/2] github-action: Add AsciiDoc freeze warning --- .../workflows/comment-on-asciidoc-changes.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/comment-on-asciidoc-changes.yml diff --git a/.github/workflows/comment-on-asciidoc-changes.yml b/.github/workflows/comment-on-asciidoc-changes.yml new file mode 100644 index 000000000..f218f0fd1 --- /dev/null +++ b/.github/workflows/comment-on-asciidoc-changes.yml @@ -0,0 +1,20 @@ +--- +name: Comment on PR for .asciidoc changes + +on: + pull_request: + types: + - synchronize + - opened + - reopened + branches: + - main + - master + - "9.0" + +jobs: + comment-on-asciidoc-change: + permissions: + contents: read + pull-requests: write + uses: elastic/docs-builder/.github/workflows/comment-on-asciidoc-changes.yml@main From e1c1f1d4bbc150b117f03e5add19890590ff3687 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Wed, 29 Jan 2025 09:25:57 +0100 Subject: [PATCH 2/2] github-action: Add AsciiDoc freeze warning --- .github/workflows/comment-on-asciidoc-changes.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment-on-asciidoc-changes.yml b/.github/workflows/comment-on-asciidoc-changes.yml index f218f0fd1..8e5f836b1 100644 --- a/.github/workflows/comment-on-asciidoc-changes.yml +++ b/.github/workflows/comment-on-asciidoc-changes.yml @@ -2,7 +2,8 @@ name: Comment on PR for .asciidoc changes on: - pull_request: + # We need to use pull_request_target to be able to comment on PRs from forks + pull_request_target: types: - synchronize - opened