.github/scripts/auto-backport.py: fix wrong username param

In 2e6755ecca I have added a comment when PR has conflicts so the assignee can get a notification about it. There was a problem with the user mention param (a missing `.login`)

Fixing it

Closes scylladb/scylladb#22036
This commit is contained in:
Yaron Kaikov
2024-12-24 08:16:36 +02:00
committed by Avi Kivity
parent 465449e4a1
commit 0fc7e786dd

View File

@@ -49,7 +49,7 @@ def create_pull_request(repo, new_branch_name, base_branch_name, pr, backport_pr
backport_pr.add_to_assignees(pr.user)
if is_draft:
backport_pr.add_to_labels("conflicts")
pr_comment = f"@{pr.user} - This PR was marked as draft because it has conflicts\n"
pr_comment = f"@{pr.user.login} - This PR was marked as draft because it has conflicts\n"
pr_comment += "Please resolve them and mark this PR as ready for review"
backport_pr.create_issue_comment(pr_comment)
logging.info(f"Assigned PR to original author: {pr.user}")