Skip to content

Commit 54b57d2

Browse files
sylvioalvesnashif
authored andcommitted
ci: set_assignees: keep deferred area label on the pr
Collect the deferred area's label when a file is matched by both a deferred file-group and a non-deferred area. The deferral removed the area before labels were gathered, so its area label was silently lost even though its maintainer stayed on as a reviewer. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
1 parent 0a0e404 commit 54b57d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/ci/set_assignees.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ def process_pr(gh, args, maintainer_file, number: int):
766766
if _deferred and _non_deferred:
767767
for _area in _deferred:
768768
deferred_reviewers.update(_area.maintainers)
769+
labels.update(_area.labels)
769770
logger.debug(
770771
" area '%s' defers to other areas for '%s'; "
771772
"maintainers %s added as reviewers only",

0 commit comments

Comments
 (0)