From 83ffe1791b2c0e1351b0bdb83bc4d0c362e8390e Mon Sep 17 00:00:00 2001 From: Allen Houchins <32207388+allenhouchins@users.noreply.github.com> Date: Fri, 14 Feb 2025 14:52:59 -0600 Subject: [PATCH] Update dogfood-policy-updater-latest-macos.sh (#26359) Updated reviewers list to not include the author as a reviewer --- .github/scripts/dogfood-policy-updater-latest-macos.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/scripts/dogfood-policy-updater-latest-macos.sh b/.github/scripts/dogfood-policy-updater-latest-macos.sh index 6952c4a8a5..cb3366e6b9 100644 --- a/.github/scripts/dogfood-policy-updater-latest-macos.sh +++ b/.github/scripts/dogfood-policy-updater-latest-macos.sh @@ -114,7 +114,7 @@ if [ "$policy_version_number" != "$latest_macos_version" ]; then echo "Adding reviewers to PR #$pr_number..." # Prepare the reviewers data payload - reviewers_data=$(jq -n --arg r1 "harrisonravazzolo" --arg r2 "allenhouchins" '{reviewers: [$r1, $r2]}') + reviewers_data=$(jq -n --arg r1 "harrisonravazzolo" '{reviewers: [$r1]}') # Request reviewers for the pull request review_response=$(curl -s -X POST \ @@ -123,9 +123,6 @@ if [ "$policy_version_number" != "$latest_macos_version" ]; then -d "$reviewers_data" \ "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls/$pr_number/requested_reviewers") - # Troubleshooting - echo "Reviewers API response:" - echo "$review_response" | jq . if echo "$review_response" | grep -q "errors"; then echo "Error: Failed to add reviewers. Response: $review_response"