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/07/19 12:58:17 UTC

[GitHub] [arrow] raulcd commented on a diff in pull request #13612: ARROW-16665: [Release] Update binary submit to track binary submission tasks on automatically created PR

raulcd commented on code in PR #13612:
URL: https://github.com/apache/arrow/pull/13612#discussion_r924469833


##########
dev/archery/archery/crossbow/cli.py:
##########
@@ -285,6 +285,42 @@ def status(obj, job_name, fetch, task_filters):
     report.show(output)
 
 
+@crossbow.command()
+@click.option('--arrow-remote', '-r', default=None,
+              help='Set GitHub remote explicitly, which is going to be cloned '
+                   'on the CI services. Note, that no validation happens '
+                   'locally. Examples: https://github.com/apache/arrow or '
+                   'https://github.com/raulcd/arrow.')
+@click.option('--crossbow', '-c', default='ursacomputing/crossbow',
+              help='Crossbow repository on github to use')
+@click.option('--fetch/--no-fetch', default=True,
+              help='Fetch references (branches and tags) from the remote')
+@click.option('--github-token', envvar='ARROW_GITHUB_API_TOKEN',
+              help='OAuth token to create comments in the arrow repo. '
+                   'Only necessary if --track-on-pr-titled is set.')
+@click.option('--job-name', required=True)
+@click.option('--track-on-pr-titled', default=None,
+              help='Track the job submitted on PR with given title')
+@click.pass_obj
+def report_pr(obj, arrow_remote, crossbow, fetch, github_token, job_name,
+              track_on_pr_titled):
+    arrow = obj['arrow']
+    queue = obj['queue']
+    if fetch:
+        queue.fetch()
+    job = queue.get(job_name)
+
+    if track_on_pr_titled:

Review Comment:
   I was thinking that in the future we could add other ways of looking for the PR, like id but you are correct I have made it mandatory as right now it should always be present.



-- 
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