Commit Graph

5 Commits

Author SHA1 Message Date
David Arthur d47abb3c27
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 <frankvicky@apache.org>, Ken Huang <s7133700@gmail.com>, Jhen-Yung Hsu <jhenyunghsu@gmail.com>
2025-05-15 12:07:26 -04:00
David Arthur d7ad6250fe
MINOR Fix PR Linter "Reviewers" handling (#19415)
This patch fixes the textwrap for Reviewers to support the RFC 822
folding rules. From the RFC, headers or trailers can break across
multiple lines if there is a leading whitespace on subsequent lines.
This allows "git interpret-trailers" to correctly parse long
"Reviewers:" lines.

Reviewers: Lianet Magrans <lmagrans@confluent.io>
2025-04-08 16:40:56 -04:00
David Arthur 3f8e86ab67
KAFKA-19013 Reformat PR body to 72 characters (#19242)
Parse the body of a PR and re-format it to a text wrap of 72 characters.
Since GitHub will do this automatically when merging PRs with the merge
queue, we should do our best to pre-format the commit message.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2025-04-05 12:34:07 -04:00
David Arthur 4dfea3c5f0
MINOR Improve PR linter output (#19159)
Add a step summary for the PR linter which shows all the errors in a
more readable format.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
2025-03-10 18:10:22 -04:00
David Arthur 8be216b24f
KAFKA-18792 Add workflow to check PR format (#18985)
Adds two new workflows to help us enforce some uniform PR structure. The
first workflow runs in an unprivileged context and simply captures the
PR number into a text file and archives it. This is then used by another
workflow that runs in a privileged context using the code in `trunk` to
actually do the validation.

The validation is done using a new Python script. This script fetches a
PR using the GitHub CLI and validates its structure. For now this just
includes the title and body, but could perform other non-code related
checks in the future.

This validation is needed for the up-coming merge queue functionality.

Reviewers: Justine Olshan <jolshan@confluent.io>
2025-02-25 15:33:52 -05:00