Skip to content

Commit

Permalink
github-action: Add AsciiDoc freeze warning (#208534)
Browse files Browse the repository at this point in the history
## Details

⚠️ This PR was created by an automated tool. Please review the changes
carefully. ⚠️

Add a workflow that will comment on PRs with AsciiDoc changes.

## Why

During the migration to Elastic Docs v3, the Docs team will focus
exclusively on migrating content.
To maintain consistency, prevent conflicts, and ensure a smoother
transition we will freeze all AsciiDoc changes.

This means you will get a warning when you create AsciiDoc changes in
your PRs.

   See elastic/docs-builder#281 for details

If there are any questions, please reach out to the
@elastic/docs-engineering

---------

Co-authored-by: Brandon Morelli <[email protected]>
  • Loading branch information
reakaleek and bmorelli25 authored Jan 30, 2025
1 parent b0a72e2 commit c7cef4c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/comment-on-asciidoc-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Comment on PR for .asciidoc changes

on:
# We need to use pull_request_target to be able to comment on PRs from forks
pull_request_target:
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

0 comments on commit c7cef4c

Please sign in to comment.