From 43061eeed9e4462a66a1e1bfd9e282c12416b0ec Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 20 Nov 2025 05:49:55 -0500 Subject: [PATCH] scripts: set_assignee: get area object before before collabs In the manifest case, we were operating on a str instead of the area object. Signed-off-by: Anas Nashif --- scripts/ci/set_assignees.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/ci/set_assignees.py b/scripts/ci/set_assignees.py index 90f7da9bb42ad..63e3734660731 100755 --- a/scripts/ci/set_assignees.py +++ b/scripts/ci/set_assignees.py @@ -248,9 +248,11 @@ def process_pr(gh, maintainer_file, number): continue parsed_areas = process_manifest(old_manifest_file=args.updated_manifest) for _area in parsed_areas: - collab_per_path.update(_area.get_collaborators_for_path(changed_file.filename)) area_match = maintainer_file.name2areas(_area) if area_match: + _area_obj = area_match[0] + collabs_for_area = _area_obj.get_collaborators_for_path(changed_file.filename) + collab_per_path.update(collabs_for_area) areas.extend(area_match) elif changed_file.filename in ['MAINTAINERS.yml']: areas = maintainer_file.path2areas(changed_file.filename)