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:
Fin Maaß 2025-03-13 12:14:28 +01:00 committed by Benjamin Cabé
commit e6d6aacf32

View file

@ -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