Skip to content

Commit 49e8e11

Browse files
fabiobaltierinashif
authored andcommitted
scripts: set_maintainer: fix author == maintainer fallback logic
The "Submitter is same as Assignee" is comparing strings to <Area> and always failing the condition, fix it by dropping the ".name". Tested with ./scripts/set_assignees.py -v -y -P 67526 (now falls back to the other maintainer as it should). Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 982fc41 commit 49e8e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/set_assignees.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def process_pr(gh, maintainer_file, number):
146146
log("Submitter is same as Assignee, trying to find another assignee...")
147147
aff = list(area_counter.keys())[0]
148148
for area in all_areas:
149-
if area.name == aff:
149+
if area == aff:
150150
if len(area.maintainers) > 1:
151151
assignee = area.maintainers[1]
152152
else:

0 commit comments

Comments
 (0)