From 8a787ca6b55f2ac297ed61d88eacd018d0b16386 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Mon, 30 Sep 2024 11:52:01 +0530 Subject: [PATCH] chore!: debug with just my username --- .github/workflows/breaking-change-review.yml | 24 +------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/.github/workflows/breaking-change-review.yml b/.github/workflows/breaking-change-review.yml index 386bbfec28..a1af58d611 100644 --- a/.github/workflows/breaking-change-review.yml +++ b/.github/workflows/breaking-change-review.yml @@ -32,39 +32,17 @@ jobs: console.log(`Has breaking_change label: ${hasBreakingChange}`); return hasBreakingChange; - - name: Fetch team members - if: steps.check_label.outputs.result == 'true' - id: fetch_team_members - uses: actions/github-script@v6 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const teams = ['@status-im/desktop-qa', '@status-im/mobile-qa']; - let allMembers = []; - - for (const team of teams) { - const { data: members } = await github.rest.teams.listMembersInOrg({ - org: context.repo.owner, - team_slug: team, - }); - allMembers = allMembers.concat(members.map(member => member.login)); - } - - console.log(`Team members: ${allMembers.join(', ')}`); - return allMembers; - - name: Request QA reviews if: steps.check_label.outputs.result == 'true' uses: actions/github-script@v6 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - const teamMembers = ${{ steps.fetch_team_members.outputs.result }}; await github.rest.pulls.requestReviewers({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.issue.number, - reviewers: teamMembers + reviewers: ['siddarthkay'] }); - name: Check QA approvals