From b1f6875520870d552ea20e7160bf792536d5c55b Mon Sep 17 00:00:00 2001 From: Zen <107134031+effozen@users.noreply.github.com> Date: Sun, 17 Nov 2024 05:30:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[ENV][Fix]=20#1=20:=20auto-assign=20?= =?UTF-8?q?=EB=9D=BC=EB=B2=A8=20=EB=B0=94=EB=80=94=EB=95=8C=EB=A7=88?= =?UTF-8?q?=EB=8B=A4=20=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-assign-reviewers.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assign-reviewers.yml b/.github/workflows/auto-assign-reviewers.yml index ba48e125..d2838166 100644 --- a/.github/workflows/auto-assign-reviewers.yml +++ b/.github/workflows/auto-assign-reviewers.yml @@ -43,7 +43,7 @@ jobs: with: script: | const targetBranch = context.payload.pull_request.base.ref; - const reviewers = targetBranch === 'main' ? 3 : 2; + const reviewers = (targetBranch === 'main' || targetBranch === 'development') ? 3 : 2; core.setOutput('number_of_reviewers', reviewers); - name: 'Assign Reviewers' From 1baf6e346f4c1cded13818c3a52aba93cc2a3e02 Mon Sep 17 00:00:00 2001 From: Zen <107134031+effozen@users.noreply.github.com> Date: Sun, 17 Nov 2024 05:56:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[ENV][Fix]=20#1=20:=20auto-assign=20?= =?UTF-8?q?=EB=9D=BC=EB=B2=A8=20=EB=B0=94=EB=80=94=EB=95=8C=EB=A7=88?= =?UTF-8?q?=EB=8B=A4=20=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=9E=AC?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit action 코드가 제대로 반영이 안되어있어서 재수정 --- .github/workflows/auto-assign-reviewers.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-assign-reviewers.yml b/.github/workflows/auto-assign-reviewers.yml index d2838166..4482d2aa 100644 --- a/.github/workflows/auto-assign-reviewers.yml +++ b/.github/workflows/auto-assign-reviewers.yml @@ -2,7 +2,7 @@ name: 'Auto Assign Reviewers' on: pull_request: - types: [opened, labeled] + types: [opened] jobs: assign_reviewers: @@ -44,7 +44,7 @@ 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/auto-assign-action@v2.0.0 @@ -52,3 +52,4 @@ jobs: repo-token: '${{ secrets.GITHUB_TOKEN }}' configuration-path: '.github/auto_assign_config.yml' numberOfReviewers: ${{ steps.determine_reviewers.outputs.number_of_reviewers }} +