Skip to content

Commit 47fe9ff

Browse files
committed
load areas
Signed-off-by: Anas Nashif <[email protected]>
1 parent 7600778 commit 47fe9ff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/assigner-workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ jobs:
7575
GITHUB_TOKEN: ${{ secrets.ZB_PR_ASSIGNER_GITHUB_TOKEN }}
7676
run: |
7777
cat ./pr/manifest_areas.json
78-
python3 scripts/set_assignees.py -P ${{ env.PR_NUM }} -M MAINTAINERS.yml -v
78+
python3 scripts/set_assignees.py -P ${{ env.PR_NUM }} -M MAINTAINERS.yml -v \
79+
--repo ${{ github.event.repository.name }}

scripts/set_assignees.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ def parse_args():
6161
parser.add_argument("--manifest", action="store_true", default=False,
6262
help="Dump manifest changes")
6363

64+
parser.add_argument("--areas", default=None,
65+
help="Load list of areas from file generated by --manifest")
66+
6467
parser.add_argument("-v", "--verbose", action="count", default=0,
6568
help="Verbose Output")
6669

@@ -131,7 +134,6 @@ def process_pr(gh, maintainer_file, number):
131134
found_maintainers = defaultdict(int)
132135

133136
num_files = 0
134-
all_areas = set()
135137
fn = list(pr.get_files())
136138

137139
if pr.commits == 1 and (pr.additions <= 1 and pr.deletions <= 1):
@@ -154,7 +156,6 @@ def process_pr(gh, maintainer_file, number):
154156
if not areas:
155157
continue
156158

157-
all_areas.update(areas)
158159
is_instance = False
159160
sorted_areas = sorted(areas, key=lambda x: 'Platform' in x.name, reverse=True)
160161
for area in sorted_areas:

0 commit comments

Comments
 (0)