-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ign-bug-fix-1 [ENV][Fix] #1 : auto-assign 라벨 바뀔때마다 되는 문제 수정
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: 'Auto Assign Reviewers' | |
|
||
on: | ||
pull_request: | ||
types: [opened, labeled] | ||
types: [opened] | ||
|
||
jobs: | ||
assign_reviewers: | ||
|
@@ -43,12 +43,13 @@ jobs: | |
with: | ||
script: | | ||
const targetBranch = context.payload.pull_request.base.ref; | ||
const reviewers = targetBranch === 'main' ? 3 : 2; | ||
core.setOutput('number_of_reviewers', reviewers); | ||
const reviewers = (targetBranch === 'main' || targetBranch === 'development') ? 3 : 2; | ||
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 }} | ||
|