Skip to content

[SPARK-57795][INFRA][FOLLOWUP] Refine the merge summary comment in merge_spark_pr.py#56923

Closed
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:merge-summary-format-dev6
Closed

[SPARK-57795][INFRA][FOLLOWUP] Refine the merge summary comment in merge_spark_pr.py#56923
zhengruifeng wants to merge 1 commit into
apache:masterfrom
zhengruifeng:merge-summary-format-dev6

Conversation

@zhengruifeng

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Follow-up to #56917 (SPARK-57795), which added a merge summary comment posted by merge_spark_pr.py. This PR refines the format of that comment:

  1. Rename the header from **Merge summary** (posted by merge_spark_pr.py): to **Merge Summary:**.
  2. Use the full commit SHA in the commit links (previously truncated to 8 characters). The [:8] truncation is dropped in merge_pr and _do_cherry_pick, with .strip() added since run_cmd does not strip the trailing newline.
  3. Move the merge_spark_pr.py attribution to a trailing italic line: *Posted by merge_spark_pr.py*.

Example rendered comment:

Merge Summary:

Posted by merge_spark_pr.py

Why are the changes needed?

A cleaner, more readable merge summary comment. Full SHAs are unambiguous and link-stable, and moving the tool attribution to the end keeps the summary itself front and center.

Does this PR introduce any user-facing change?

No. This only affects the developer merge tooling.

How was this patch tested?

Manually verified the generated comment body and confirmed the full SHA is carried through. Existing lint (ruff) passes.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (model: claude-opus-4-8)

Rename the header to "Merge Summary:", use full commit SHAs in the
links, and move the "Posted by merge_spark_pr.py" attribution to a
trailing italic line.
@zhengruifeng zhengruifeng changed the title [INFRA] Refine the merge summary comment in merge_spark_pr.py [INFRA][FOLLOWUP] Refine the merge summary comment in merge_spark_pr.py Jul 1, 2026
@zhengruifeng zhengruifeng changed the title [INFRA][FOLLOWUP] Refine the merge summary comment in merge_spark_pr.py [SPARK-57795][INFRA][FOLLOWUP] Refine the merge summary comment in merge_spark_pr.py Jul 1, 2026
@zhengruifeng zhengruifeng marked this pull request as ready for review July 1, 2026 11:24
@zhengruifeng

Copy link
Copy Markdown
Contributor Author

Merge Summary:

Posted by merge_spark_pr.py

@zhengruifeng

Copy link
Copy Markdown
Contributor Author

oops, this PR is unintentionally merged into master, let me revert it

@zhengruifeng zhengruifeng deleted the merge-summary-format-dev6 branch July 1, 2026 11:36
zhengruifeng added a commit that referenced this pull request Jul 1, 2026
…nt in merge_spark_pr.py"

#56923 was unintentionally merged into master, let me revert it

Closes #56924 from zhengruifeng/revert-merge-summary-format.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant