Skip to content

Commit

Permalink
Merge pull request #179 from boostcampwm-2024/feature/env/#1-auto-ass…
Browse files Browse the repository at this point in the history
…ign-bug-fix-1

[ENV][Fix] #1 : auto-assign 라벨 바뀔때마다 되는 문제 수정
  • Loading branch information
effozen authored Nov 17, 2024
2 parents a7e2d1f + 1baf6e3 commit fe41f0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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 @@ -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 }}

0 comments on commit fe41f0c

Please sign in to comment.