[FIX] forwardport: missing login in feedback message

Closes #503
This commit is contained in:
Xavier Morel 2021-07-30 12:01:09 +02:00 committed by xmo-odoo
parent 747174f610
commit 32829cf880

View File

@ -343,7 +343,8 @@ class PullRequests(models.Model):
# only the author is delegated explicitely on the
pr._parse_commands(author, {**comment, 'body': merge_bot + ' r+'}, login)
elif token == 'close':
msg = "I'm sorry, @{}. I can't close this PR for you."
msg = "I'm sorry, @{}. I can't close this PR for you.".format(
login)
if self.source_id._pr_acl(author).is_reviewer:
close = True
msg = None