kszucs commented on code in PR #13230:
URL: https://github.com/apache/arrow/pull/13230#discussion_r884717824
##########
dev/archery/archery/cli.py:
##########
@@ -900,22 +900,16 @@ def release_cherry_pick(obj, version, dry_run, recreate):
"""
Cherry pick commits.
"""
- from .release import Release, MinorRelease, PatchRelease
+ from .release import Release
release = Release.from_jira(version, jira=obj['jira'], repo=obj['repo'])
- if not isinstance(release, (MinorRelease, PatchRelease)):
- raise click.UsageError('Cherry-pick command only supported for minor '
- 'and patch releases')
if not dry_run:
release.cherry_pick_commits(recreate_branch=recreate)
Review Comment:
Good idea, but may handle it in follow-up PR.
--
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]