ci: set_assignee: don't allways pick next area when submitter = assignee
we don't want to pick the next area when there are other maintainers available in the same area. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
4680590fda
commit
e6d6aacf32
1 changed files with 7 additions and 1 deletions
|
@ -136,7 +136,13 @@ def process_pr(gh, maintainer_file, number):
|
|||
if pr.user.login in area.maintainers:
|
||||
# submitter = assignee, try to pick next area and
|
||||
# assign someone else other than the submitter
|
||||
continue
|
||||
# when there also other maintainers for the area
|
||||
# assign them
|
||||
if len(area.maintainers) > 1:
|
||||
assignees = area.maintainers.copy()
|
||||
assignees.remove(pr.user.login)
|
||||
else:
|
||||
continue
|
||||
else:
|
||||
assignees = area.maintainers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue