Skip to content

Commit

Permalink
tools: github_cron: Fix fetch of repo owner
Browse files Browse the repository at this point in the history
Take the login of repo owner instead of the login of the PR creator.
  • Loading branch information
mkasenberg committed May 24, 2024
1 parent 6a6c7a6 commit f1704ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cron/github_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit f1704ee

Please sign in to comment.