szehon-ho opened a new pull request, #59082: URL: https://github.com/apache/spark/pull/59082
### What changes were proposed in this pull request? After merging or backporting a `Revert "..."` PR, offer to remove the corresponding unreleased JIRA fix versions. For example, accepting the suggested versions (`<Enter>` denotes a blank response): ```text Revert merged into: master, branch-4.x JIRA issue SPARK-12345 has fix version(s): ['5.0.0', '4.3.0', '3.5.2'] Available unreleased fix version(s) to remove: ['4.3.0', '5.0.0'] Enter comma-separated fix version(s) to remove [5.0.0,4.3.0], or 'skip': <Enter> Remove fix version(s) ['5.0.0', '4.3.0'] from SPARK-12345? (y/N): y Successfully removed fixVersions=['5.0.0', '4.3.0'] from SPARK-12345! ``` The committer can enter a different selection or type `skip`. Other fix versions and the ticket's status are preserved. Released and archived versions are excluded, and `--dry-run` logs the proposed removal. ### Why are the changes needed? Spark release issue lists use JIRA fix versions. Reverted PRs currently leave those versions behind, so release notes can list changes absent from the release. Removing stale fix versions at merge time avoids inaccurate release notes and manual cleanup by release managers. ### Does this PR introduce _any_ user-facing change? Yes, the committer prompts shown above. ### How was this patch tested? All 183 doctest examples pass with Python 3.14, including new mocked JIRA tests for removal, skipping, version protection, and dry runs: ```sh python3 -m doctest dev/merge_spark_pr.py ``` Ruff 0.14.8 lint and formatting checks and `git diff --check` also pass. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: OpenAI Codex (GPT-6) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
