Skip to content

Commit

Permalink
[ENV][Fix] #1 : auto-assign 라벨 바뀔때마다 되는 문제 재수정
Browse files Browse the repository at this point in the history
action 코드가 제대로 반영이 안되어있어서 재수정
  • Loading branch information
effozen authored Nov 16, 2024
1 parent b1f6875 commit 1baf6e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-assign-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Auto Assign Reviewers'

on:
pull_request:
types: [opened, labeled]
types: [opened]

jobs:
assign_reviewers:
Expand Down Expand Up @@ -44,11 +44,12 @@ jobs:
script: |
const targetBranch = context.payload.pull_request.base.ref;
const reviewers = (targetBranch === 'main' || targetBranch === 'development') ? 3 : 2;
core.setOutput('number_of_reviewers', reviewers);
return { number_of_reviewers: reviewers };
- name: 'Assign Reviewers'
uses: kentaro-m/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
configuration-path: '.github/auto_assign_config.yml'
numberOfReviewers: ${{ steps.determine_reviewers.outputs.number_of_reviewers }}

0 comments on commit 1baf6e3

Please sign in to comment.