Skip to content

[ENV][Fix] #1 : auto-assign-reviewers action ์ˆ˜์ • #2

[ENV][Fix] #1 : auto-assign-reviewers action ์ˆ˜์ •

[ENV][Fix] #1 : auto-assign-reviewers action ์ˆ˜์ • #2

# 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' # ์ด๋ถ€๋ถ„์€ ์ฐจํ›„ ์ƒ์„ฑํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค