Skip to content

Commit 593c810

Browse files
committed
[SPARK-51493] Refine merge_spark_pr.py to use connect-swift-x.y.z version
### What changes were proposed in this pull request? This PR aims to refine `merge_spark_pr.py` to use `connect-swift-x.y.z` version pattern. ### Why are the changes needed? To avoid using the version of Apache Spark repository. ### Does this PR introduce _any_ user-facing change? No, this is an dev script. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #14 from dongjoon-hyun/SPARK-51493. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 3b77f49 commit 593c810

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/merge_spark_pr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ def resolve_jira_issue(merge_branches, comment, default_jira_id=""):
311311
versions = [
312312
x
313313
for x in versions
314-
if not x.raw["released"] and not x.raw["archived"] and re.match(r"\d+\.\d+\.\d+", x.name)
314+
if not x.raw["released"]
315+
and not x.raw["archived"]
316+
and re.match(r"connect-swift-\d+\.\d+\.\d+", x.name)
315317
]
316318
versions = sorted(versions, key=lambda x: x.name, reverse=True)
317319

0 commit comments

Comments
 (0)