Gengliang Wang created SPARK-58045:
--------------------------------------
Summary: Verify the linked JIRA matches the PR in merge_spark_pr.py
Key: SPARK-58045
URL: https://issues.apache.org/jira/browse/SPARK-58045
Project: Spark
Issue Type: Improvement
Components: Project Infra
Affects Versions: 5.0.0
Reporter: Gengliang Wang
merge_spark_pr.py fetches and prints each linked JIRA's summary after the
committer enters the PR number, but nothing forces the committer to confirm
that the ticket actually matches the PR. As a result a PR can be merged against
the wrong ticket - for example when a GitHub PR number in the body ("Closes
#NNNNN") is mistaken for a SPARK JIRA id - which resolves an unrelated,
possibly already-Resolved ticket on merge.
This adds a verification step right after the PR number is entered: for each
linked JIRA it shows the PR title next to the ticket's summary, status, and
type, prints a red warning when the ticket is already Resolved/Closed (a fresh
merge should target an open ticket), and requires an explicit y/N confirmation.
Answering anything other than "y" aborts the merge and asks the committer to
fix the PR title.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]