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 8736a7f commit 6fee789
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- if: github.event_name == 'pull_request'
uses: actions/github-script@v6
uses: rowi1de/[email protected]
with:
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
});
repo-token: ${{ secrets.GITHUB_TOKEN }}
teams: ${{ inputs.reviewers-team != '' && inputs.reviewers-team || 'backend-devs' }} # only works for GitHub Organisation/Teams
persons: ${{ inputs.reviewers-individuals }} # add individual persons here
include-draft: false # Draft PRs will be skipped (default: false)
skip-with-manual-reviewers: 1 # Skip this action, if the number of reviwers was already assigned (default: 0)

0 comments on commit 6fee789

Please sign in to comment.