Skip to content

Commit

Permalink
Update apiBreakTest.yml to remove review adding function
Browse files Browse the repository at this point in the history
  • Loading branch information
rozaychen authored Jun 27, 2024
1 parent 8668033 commit 3d6a9ba
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/apiBreakTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,9 @@ jobs:
echo "### 💔 Public API Breaking Change detected:" >> $GITHUB_ENV
echo -e "$api_diff_output" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "BREAKING_CHANGE_DETECTED=true" >> $GITHUB_ENV
else
echo "### ✅ No Public API Breaking Change detected" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "BREAKING_CHANGE_DETECTED=false" >> $GITHUB_ENV
fi
# Checkout to the branch associated with the pull request
Expand Down Expand Up @@ -185,20 +183,3 @@ jobs:
} else {
console.log("No API diff output found.");
}
- name: Add Reviewer if Breaking Change Detected
if: env.BREAKING_CHANGE_DETECTED == 'true'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.payload.pull_request.number;
const owner = context.repo.owner;
const repo = context.repo.repo;
github.rest.pulls.requestReviewers({
owner: owner,
repo: repo,
pull_number: issueNumber,
team_reviewers: ["amplify-ios-admins"]
});

0 comments on commit 3d6a9ba

Please sign in to comment.