Assign PRs to an original merged_by too

This commit is contained in:
Mikhail f. Shiryaev 2022-09-01 12:38:30 +02:00
parent 187b10dec5
commit 1da02adc8d
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -242,7 +242,7 @@ Merge it only if you intend to backport changes to the target branch, otherwise
def _assign_new_pr(self, new_pr: PullRequest): def _assign_new_pr(self, new_pr: PullRequest):
# It looks there some race when multiple .add_to_assignees are executed, # It looks there some race when multiple .add_to_assignees are executed,
# so we'll add all at once # so we'll add all at once
assignees = [self.pr.user] assignees = [self.pr.user, self.pr.merged_by]
if self.pr.assignees: if self.pr.assignees:
assignees.extend(self.pr.assignees) assignees.extend(self.pr.assignees)
logging.info( logging.info(