From e6d6aacf3232347cc6bc0cd530e2bbae7b1f92ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Thu, 13 Mar 2025 12:14:28 +0100 Subject: [PATCH] ci: set_assignee: don't allways pick next area when submitter = assignee MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we don't want to pick the next area when there are other maintainers available in the same area. Signed-off-by: Fin Maaß --- scripts/set_assignees.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/set_assignees.py b/scripts/set_assignees.py index f9fa1769a8d..a428f102cfe 100755 --- a/scripts/set_assignees.py +++ b/scripts/set_assignees.py @@ -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