Fix wrong assignees argument passing

This commit is contained in:
Mikhail f. Shiryaev 2022-08-18 22:22:50 +02:00
parent 2cfeff45ba
commit dce060bac4
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -211,9 +211,9 @@ Merge it only if you intend to backport changes to the target branch, otherwise
"Assing to assignees of the original PR: %s",
", ".join(user.login for user in self.pr.assignees),
)
self.cherrypick_pr.add_to_assignees(self.pr.assignees)
self.cherrypick_pr.add_to_assignees(*self.pr.assignees)
logging.info("Assign to the author of the original PR: %s", self.pr.user.login)
self.cherrypick_pr.add_to_assignees(self.pr.user)
self.cherrypick_pr.add_to_assignees(*self.pr.user)
def create_backport(self):
# Checkout the backport branch from the remote and make all changes to
@ -249,9 +249,9 @@ Merge it only if you intend to backport changes to the target branch, otherwise
"Assing to assignees of the original PR: %s",
", ".join(user.login for user in self.pr.assignees),
)
self.cherrypick_pr.add_to_assignees(self.pr.assignees)
self.cherrypick_pr.add_to_assignees(*self.pr.assignees)
logging.info("Assign to the author of the original PR: %s", self.pr.user.login)
self.backport_pr.add_to_assignees(self.pr.user)
self.backport_pr.add_to_assignees(*self.pr.user)
@property
def backported(self) -> bool: