Skip to content

Commit

Permalink
Update add-to-project.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
chicco785 authored Sep 27, 2023
1 parent 288b8cc commit 8736a7f
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,11 @@ jobs:
- if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
const team = 'backend-devs';
const token = process.env.GITHUB_TOKEN;
const response = await github.rest.pulls.addReviewers({
pull_id: context.payload.pull_id,
team_reviewers: [team],
token
});
console.log(response);
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
team_reviewers: ["backend-devs"] # replace this with any team existing in your Github org
});

0 comments on commit 8736a7f

Please sign in to comment.