raulcd commented on code in PR #14248:
URL: https://github.com/apache/arrow/pull/14248#discussion_r982276378
##########
dev/archery/archery/crossbow/cli.py:
##########
@@ -551,3 +551,42 @@ def upload_artifacts(obj, tag, sha, patterns, method):
queue.github_overwrite_release_assets(
tag_name=tag, target_commitish=sha, method=method, patterns=patterns
)
+
+
[email protected]()
[email protected]('--dry-run/--execute', default=False,
+ help='Just display process, don\'t download anything')
[email protected]('--days', default=90,
+ help='Branches older than this amount of days will be deleted')
[email protected]_obj
+def delete_old_branches(obj, dry_run, days):
+ """
+ Deletes branches on queue repository (crossbow) that are older than number
+ of days.
Review Comment:
Good idea, I've added a new CLI argument to limit the maximum number of
branches to delete.
--
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]