@@ -208,7 +208,7 @@ def verify_release_candidate(obj, base_branch, create_pr,
208208 for flag , group in zip (verify_flags , verify_groups ):
209209 if flag :
210210 job_groups += f" --group { group } "
211- response .create_comment (
211+ response .create_issue_comment (
212212 f"{ command } { job_groups } --param " +
213213 f"release={ version } --param rc={ rc } " )
214214
@@ -300,6 +300,10 @@ def asset_callback(task_name, task, asset):
300300
301301
302302@crossbow .command ()
303+ @click .option ('--base-branch' , default = 'main' ,
304+ help = 'Set base branch for the PR.' )
305+ @click .option ('--head-branch' , default = None ,
306+ help = 'Set head branch for the PR.' )
303307@click .option ('--arrow-remote' , '-r' , default = None ,
304308 help = 'Set GitHub remote explicitly, which is going to be cloned '
305309 'on the CI services. Note, that no validation happens '
@@ -313,7 +317,8 @@ def asset_callback(task_name, task, asset):
313317@click .option ('--pr-title' , required = True ,
314318 help = 'Track the job submitted on PR with given title' )
315319@click .pass_obj
316- def report_pr (obj , arrow_remote , crossbow , fetch , job_name , pr_title ):
320+ def report_pr (obj , base_branch , head_branch , arrow_remote , crossbow ,
321+ fetch , job_name , pr_title ):
317322 arrow = obj ['arrow' ]
318323 queue = obj ['queue' ]
319324 if fetch :
@@ -322,11 +327,12 @@ def report_pr(obj, arrow_remote, crossbow, fetch, job_name, pr_title):
322327
323328 report = CommentReport (job , crossbow_repo = crossbow )
324329 target_arrow = Repo (path = arrow .path , remote_url = arrow_remote )
325- pull_request = target_arrow .github_pr (title = pr_title ,
330+ pull_request = target_arrow .github_pr (base = base_branch , head = head_branch ,
331+ title = pr_title ,
326332 github_token = queue .github_token ,
327333 create = False )
328334 # render the response comment's content on the PR
329- pull_request .create_comment (report .show ())
335+ pull_request .create_issue_comment (report .show ())
330336 click .echo (f'Job is tracked on PR { pull_request .html_url } ' )
331337
332338
0 commit comments