message: chore: fixy fixy
diff: @@ -30,15 +30,22 @@ jobs:
  github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
  script: |
  // Get all members of all required groups
  +
  + const requestedReviewers = ${{steps.get-requested-reviewers.outputs.result}};
  const { data: groupMembers } = await Promise.all(
  - ${{steps.get-requested-reviewers.outputs.result}}.teams.map(
  - (team) => github.rest.teams.listMembersInOrg({
  + requestedReviewers.teams.map(
  + async (team) => {
  + const { data } = await github.rest.teams.listMembersInOrg({
  org: context.payload.organization.login,
  team_slug: team.slug,
  - })
  + });
  +
  + return data;
  + }
  )
  )
  - return groupMembers;
  + return groupMembers.flat();
  +
  - uses: actions/github-script@v5
  id: get-all-current-reviews
  with:
  @@ -51,6 +58,7 @@ jobs:
  });
  return allReviews;
  +
  - uses: actions/github-script@v5
  id: fix-labels
  with:
  