Remove automatic reviewer assignment in automatic PRs. (#10828)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-11-29 18:01:07 -05:00
committed by GitHub
parent 3042f8f08e
commit 1eae21c060

View File

@@ -165,6 +165,7 @@ jobs:
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git fetch --depth=5
mapfile -t updated_package_array < <( git diff-tree --no-commit-id --name-only -r $(git rev-parse origin/master)..$(git rev-parse --verify HEAD) | grep -v manifest | grep "^packages" | sed -e 's,packages/,,' -e 's,.rb,,')
echo -e "Updated packages:" > /tmp/pr.txt
for file in "${updated_package_array[@]}"
@@ -178,11 +179,3 @@ jobs:
- name: Trigger Unit Test workflow.
run: |
gh workflow run "Unit-Test.yml" --ref ${{ github.ref_name }}
- name: Add active team reviewers to PR
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos${{ github.owner }}/${{ github.repository }}/pulls/${PR_NUMBER}/requested_reviewers \
-d '{"team_reviewers":["active"]}'