You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/09/28 11:21:04 UTC
[GitHub] [arrow] raulcd commented on a diff in pull request #14248: ARROW-17856: [CI][Archery] Add new Archery command to delete old branches and tags on crossbow repo
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
)
+
+
+@crossbow.command()
+@click.option('--dry-run/--execute', default=False,
+ help='Just display process, don\'t download anything')
+@click.option('--days', default=90,
+ help='Branches older than this amount of days will be deleted')
+@click.pass_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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org