From 0fc7e786ddfd6efaeab38ce0a7997bf66de69769 Mon Sep 17 00:00:00 2001 From: Yaron Kaikov Date: Tue, 24 Dec 2024 08:16:36 +0200 Subject: [PATCH] .github/scripts/auto-backport.py: fix wrong username param In 2e6755ecca76d6d358dc6a8110d308cfd5f6db37 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 --- .github/scripts/auto-backport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/auto-backport.py b/.github/scripts/auto-backport.py index 032bec1821..f992799746 100755 --- a/.github/scripts/auto-backport.py +++ b/.github/scripts/auto-backport.py @@ -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}")