Skip to content

Commit

Permalink
chore!: debug with just my username
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Sep 30, 2024
1 parent 0daf1a4 commit 8a787ca
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/breaking-change-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a787ca

Please sign in to comment.