Skip to content

Commit 46c8e5a

Browse files
committed
tweak head_ref in db to match what report expects
1 parent f1d0d12 commit 46c8e5a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/ci/clickhouse_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def prepare_tests_results_for_clickhouse(
219219
) -> List[dict]:
220220
base_ref = pr_info.base_ref
221221
base_repo = pr_info.base_name
222-
head_ref = pr_info.head_ref
222+
head_ref = pr_info.head_branch
223223
head_repo = pr_info.head_name
224224
pull_request_url = f"https://github.com/{GITHUB_REPOSITORY}/commits/{head_ref}"
225225
if pr_info.number != 0:

tests/ci/pr_info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ def __init__(
328328
self.head_ref = ref
329329
self.head_name = self.repo_full_name
330330

331+
self.head_branch = github_event.get("head_branch", "unknown branch")
332+
331333
if need_changed_files:
332334
self.fetch_changed_files()
333335

0 commit comments

Comments
 (0)