Skip to content

Commit 43e1bfc

Browse files
committed
workflow
Signed-off-by: Anas Nashif <[email protected]>
1 parent ceba4ab commit 43e1bfc

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

.github/workflows/assigner-workflow.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,5 @@ jobs:
7474
env:
7575
GITHUB_TOKEN: ${{ secrets.ZB_PR_ASSIGNER_GITHUB_TOKEN }}
7676
run: |
77-
FLAGS="-v"
78-
FLAGS+=" -o ${{ github.event.repository.owner.login }}"
79-
FLAGS+=" -r ${{ github.event.repository.name }}"
80-
FLAGS+=" -M MAINTAINERS.yml"
81-
if [ "${{ github.event_name }}" = "pull_request_target" ]; then
82-
FLAGS+=" -P ${{ github.event.pull_request.number }} -c origin/${{ github.base_ref }}.."
83-
elif [ "${{ github.event_name }}" = "issues" ]; then
84-
FLAGS+=" -I ${{ github.event.issue.number }}"
85-
elif [ "${{ github.event_name }}" = "schedule" ]; then
86-
FLAGS+=" --modules"
87-
else
88-
echo "Unknown event: ${{ github.event_name }}"
89-
exit 1
90-
fi
91-
92-
python3 scripts/set_assignees.py $FLAGS
77+
cat ./pr/manifest_areas.json
78+
python3 scripts/set_assignees.py -P ${{ env.PR_NUM }} -M MAINTAINERS.yml -v

scripts/set_assignees.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,9 @@ def process_pr(gh, maintainer_file, number):
147147

148148
areas = []
149149
if changed_file.filename in ['west.yml','submanifests/optional.yaml']:
150-
changed_areas = process_manifest()
151-
for _area in changed_areas:
152-
area_match = maintainer_file.name2areas(_area)
153-
if area_match:
154-
areas.extend(area_match)
155-
else:
156-
areas = maintainer_file.path2areas(changed_file.filename)
150+
continue
151+
152+
areas = maintainer_file.path2areas(changed_file.filename)
157153

158154
if not areas:
159155
continue

0 commit comments

Comments
 (0)