@@ -205,7 +205,7 @@ def _handle_pr_labeled(config: RelayConfig, payload: dict) -> dict:
205205 status = job_status ,
206206 conclusion = (job_conclusion if job_status == "completed" else None ),
207207 details_url = details_url ,
208- external_id = str (run_id ),
208+ external_id = f" { run_id } : { pr_number } " if pr_number else str (run_id ),
209209 output = gh_helper .build_check_run_output (
210210 job_status ,
211211 job_conclusion ,
@@ -267,7 +267,7 @@ def _handle_check_run_rerequested(config: RelayConfig, payload: dict) -> dict:
267267 """
268268 check_run = payload .get ("check_run" ) or {}
269269 name = check_run .get ("name" , "" )
270- run_id = check_run .get ("external_id" ) or ""
270+ run_id = ( check_run .get ("external_id" ) or "" ). split ( ":" )[ 0 ]
271271 downstream_repo = _downstream_repo_from_check_run (name )
272272 if not downstream_repo or not run_id :
273273 return {"ignored" : True , "reason" : "not a crcr check run" }
@@ -350,7 +350,7 @@ def _handle_check_suite_rerequested(config: RelayConfig, payload: dict) -> dict:
350350 rerun : list [str ] = []
351351 for check_run in check_runs :
352352 downstream_repo = _downstream_repo_from_check_run (check_run .get ("name" , "" ))
353- run_id = check_run .get ("external_id" ) or ""
353+ run_id = ( check_run .get ("external_id" ) or "" ). split ( ":" )[ 0 ]
354354 if not downstream_repo or not run_id :
355355 continue
356356 if (downstream_repo , run_id ) in seen :
0 commit comments