From f1704ee46ab469c1dde30319e7e8e1a0eecec5e8 Mon Sep 17 00:00:00 2001 From: Magdalena Kasenberg Date: Wed, 22 May 2024 12:32:53 +0200 Subject: [PATCH] tools: github_cron: Fix fetch of repo owner Take the login of repo owner instead of the login of the PR creator. --- tools/cron/github_cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cron/github_cron.py b/tools/cron/github_cron.py index a9faed1276..874baa24c0 100644 --- a/tools/cron/github_cron.py +++ b/tools/cron/github_cron.py @@ -224,7 +224,7 @@ def get_pr_info(self, github_pr_number): pr_info = { 'number': github_pr_number, - 'source_repo_owner': pr['user']['login'], + 'source_repo_owner': pr['head']['repo']['owner']['login'], 'repo_name': pr['head']['repo']['name'], 'source_branch': pr['head']['ref'], 'head_sha': pr['head']['sha'],