Add a doc-string for ReleaseBranch._assign_new_pr

This commit is contained in:
Mikhail f. Shiryaev 2022-09-01 13:05:10 +02:00
parent 1da02adc8d
commit ca837e6755
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -240,6 +240,7 @@ Merge it only if you intend to backport changes to the target branch, otherwise
self._assign_new_pr(self.backport_pr)
def _assign_new_pr(self, new_pr: PullRequest):
"""Assign `new_pr` to author, merger and assignees of an original PR"""
# It looks there some race when multiple .add_to_assignees are executed,
# so we'll add all at once
assignees = [self.pr.user, self.pr.merged_by]