Skip to content

Commit

Permalink
chore: update choosing reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
stardustmeg committed Apr 24, 2024
1 parent 1e3b2d5 commit fceb320
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
id: pr_author
run: echo "::set-output name=author::${{ github.event.pull_request.user.login }}"

- name: Debug PR Author
run: |
echo "PR Author: "
echo "${{ steps.pr_author.outputs.author }}"
- name: Select Reviewers
id: select_reviewers
run: |
Expand All @@ -54,11 +59,16 @@ jobs:
echo "::set-output name=reviewers::$(printf '%s' "${selected_reviewers[@]}")"
- name: Debug Selected Reviewers
run: |
echo "Selected Reviewers: "
echo "${{ steps.select_reviewers.outputs.reviewers }}"
- name: Request Review
if: github.actor != steps.pr_author.outputs.author # Exclude the author
uses: octokit/[email protected]
with:
route: POST /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/requested_reviewers
mediaType: '{"previews":["luke-cage"]}'
token: ${{ secrets.GITHUB_TOKEN }}
reviewers: ${{ steps.select_reviewers.outputs.reviewers[0] }}, ${{ steps.select_reviewers.outputs.reviewers[1] }}
reviewers: ${{ join(steps.select_reviewers.outputs.reviewers, ', ') }}

0 comments on commit fceb320

Please sign in to comment.