[ENV][Fix] #1 : auto-assign-reviewers action ์์ #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PR ์ด๋ฒคํธ ๋ฐ์ ์(opened), ๋ผ๋ฒจ์ด ๋ถ๋ ์ด๋ฒคํธ ๋ฐ์ ์(labeled) ์๋์ผ๋ก ํ์ ์ค Reviewer 2๋ช ์ง์ | |
name: 'Auto Assign Reviewers' | |
on: | |
pull_request: | |
types: [opened, labeled] | |
jobs: | |
assign_reviewers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Check for label' | |
uses: actions/github-script@v6 | |
id: label_check | |
with: | |
script: | | |
const labels = context.payload.pull_request.labels; | |
return labels.some(label => label.name === 'ํ์ธ ์์ฒญ'); | |
- name: 'Assign Reviewers' | |
if: steps.label_check.outputs.result == 'true' | |
uses: kentaro-m/[email protected] | |
with: | |
repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
configuration-path: '.github/auto_assign_config.yml' # ์ด๋ถ๋ถ์ ์ฐจํ ์์ฑํ๊ฒ ์ต๋๋ค |