This is an automated email from the ASF dual-hosted git repository.

davidarthur pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new d47abb3c27b MINOR: Fix backticks in PR body (#19726)
d47abb3c27b is described below

commit d47abb3c27be51af6667d8937a0894be3b05c9ab
Author: David Arthur <[email protected]>
AuthorDate: Thu May 15 12:07:26 2025 -0400

    MINOR: Fix backticks in PR body (#19726)
    
    This fixes the paragraph splitting done in the pr-format.py script. If a
    line contains a triple backtick, the script will consider it markdown
    and adjust the formatting accordingly.
    
    Reviewers: TengYao Chi <[email protected]>, Ken Huang 
<[email protected]>, Jhen-Yung Hsu <[email protected]>
---
 .github/scripts/pr-format.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/scripts/pr-format.py b/.github/scripts/pr-format.py
index 7793f8c8378..d2da5e3e5bf 100644
--- a/.github/scripts/pr-format.py
+++ b/.github/scripts/pr-format.py
@@ -97,6 +97,8 @@ def split_paragraphs(text: str):
         else:
             if line[0] in ("#", "*", "-", "=") or line[0].isdigit():
                 markdown = True
+            if "```" in line:
+                markdown = True
             paragraph.append(line)
     yield paragraph, markdown
 

Reply via email to