From c6393a8c466d3f912321f476dca6f70731d9b605 Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Tue, 17 Feb 2026 21:59:27 +0900 Subject: [PATCH 1/6] =?UTF-8?q?chore:=20jira=20issue=20=EC=97=B0=EA=B2=B0?= =?UTF-8?q?=20=EB=B0=A9=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 새로 만들어진 워크스페이스에 맞게 jira key 변경 - issue 링크를 본문에 추가하는 대신 comment로 추가하도록 수정 --- .github/workflows/pr-review-manager.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pr-review-manager.yml b/.github/workflows/pr-review-manager.yml index 1472ad75..acb633b1 100644 --- a/.github/workflows/pr-review-manager.yml +++ b/.github/workflows/pr-review-manager.yml @@ -27,7 +27,7 @@ jobs: - name: Extract JIRA issue key from branch name id: extract-jira-key run: | - JIRA_KEY=$(echo ${{ github.head_ref }} | grep -oE 'MOD-[0-9]+' || echo "") + JIRA_KEY=$(echo ${{ github.head_ref }} | grep -oE 'MD-[0-9]+' || echo "") echo "jira_key=$JIRA_KEY" >> "$GITHUB_OUTPUT" # PR 본문을 JSON 형식으로 파싱하기 위한 jq 설치 @@ -35,20 +35,11 @@ jobs: if: steps.extract-jira-key.outputs.jira_key != '' # JIRA 이슈 키가 없는 경우에는 실행하지 않음 run: sudo apt-get update && sudo apt-get install -y jq - # https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#update-a-pull-request - - name: Add JIRA issue link to PR body + - name: Add JIRA issue link to Comment if: steps.extract-jira-key.outputs.jira_key != '' # JIRA 이슈 키가 없는 경우에는 실행하지 않음 - run: | - PR_BODY=$(cat < Date: Tue, 17 Feb 2026 22:07:05 +0900 Subject: [PATCH 2/6] =?UTF-8?q?chore:=20=EC=85=B8=20=EC=9D=B8=EC=A0=9D?= =?UTF-8?q?=EC=85=98=20=EC=9C=84=ED=97=98=EC=9D=84=20=EB=B0=A9=EC=A7=80?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20=EC=9C=84=ED=95=B4=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=82=AC=EC=9A=A9=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EA=B2=83=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/moddo-kr/moddo-frontend/pull/20#discussion_r2816933882 --- .github/workflows/pr-review-manager.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-review-manager.yml b/.github/workflows/pr-review-manager.yml index acb633b1..aa4a7336 100644 --- a/.github/workflows/pr-review-manager.yml +++ b/.github/workflows/pr-review-manager.yml @@ -26,9 +26,11 @@ jobs: steps: - name: Extract JIRA issue key from branch name id: extract-jira-key + env: + HEAD_REF: ${{ github.head_ref }} # PR의 브랜치 이름 run: | - JIRA_KEY=$(echo ${{ github.head_ref }} | grep -oE 'MD-[0-9]+' || echo "") - echo "jira_key=$JIRA_KEY" >> "$GITHUB_OUTPUT" + JIRA_KEY=$(echo "$HEAD_REF" | grep -oE 'MD-[0-9]+' || echo "") + echo "jira_key=$JIRA_KEY" >> "$GITHUB_OUTPUT" # PR 본문을 JSON 형식으로 파싱하기 위한 jq 설치 - name: Install jq From cdec43c1a2f6d1e85bcc0b24d0e25cb5819aea64 Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Tue, 17 Feb 2026 22:08:03 +0900 Subject: [PATCH 3/6] =?UTF-8?q?chore:=20=EC=82=AC=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20jq=20=EC=84=A4=EC=B9=98=20?= =?UTF-8?q?=EB=8B=A8=EA=B3=84=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/moddo-kr/moddo-frontend/pull/20#discussion_r2816933899 --- .github/workflows/pr-review-manager.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/pr-review-manager.yml b/.github/workflows/pr-review-manager.yml index aa4a7336..9e22112b 100644 --- a/.github/workflows/pr-review-manager.yml +++ b/.github/workflows/pr-review-manager.yml @@ -32,11 +32,6 @@ jobs: JIRA_KEY=$(echo "$HEAD_REF" | grep -oE 'MD-[0-9]+' || echo "") echo "jira_key=$JIRA_KEY" >> "$GITHUB_OUTPUT" - # PR 본문을 JSON 형식으로 파싱하기 위한 jq 설치 - - name: Install jq - if: steps.extract-jira-key.outputs.jira_key != '' # JIRA 이슈 키가 없는 경우에는 실행하지 않음 - run: sudo apt-get update && sudo apt-get install -y jq - - name: Add JIRA issue link to Comment if: steps.extract-jira-key.outputs.jira_key != '' # JIRA 이슈 키가 없는 경우에는 실행하지 않음 uses: thollander/actions-comment-pull-request@v3 From b3bc05ec7e975eb5674e36897d781e93bf01e57d Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Tue, 17 Feb 2026 22:13:26 +0900 Subject: [PATCH 4/6] =?UTF-8?q?chore:=20pr=20comment=20=EC=9E=91=EC=84=B1?= =?UTF-8?q?=EC=9D=84=20=EC=9C=84=ED=95=9C=20permissions=20=EC=9E=AC?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-review-manager.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-review-manager.yml b/.github/workflows/pr-review-manager.yml index 9e22112b..3694aee6 100644 --- a/.github/workflows/pr-review-manager.yml +++ b/.github/workflows/pr-review-manager.yml @@ -23,6 +23,8 @@ jobs: add-jira-link: runs-on: ubuntu-latest if: github.event.action == 'opened' # PR 생성 시에만 실행 + permissions: + pull-requests: write steps: - name: Extract JIRA issue key from branch name id: extract-jira-key From dde6d6519057d355d844af9cfc7d0ba0b23898ac Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Tue, 17 Feb 2026 22:14:26 +0900 Subject: [PATCH 5/6] =?UTF-8?q?chore:=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EA=B3=B5=EB=B0=B1=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/moddo-kr/moddo-frontend/pull/21#discussion_r2816977632 --- .github/workflows/pr-review-manager.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-review-manager.yml b/.github/workflows/pr-review-manager.yml index 3694aee6..ea443329 100644 --- a/.github/workflows/pr-review-manager.yml +++ b/.github/workflows/pr-review-manager.yml @@ -32,7 +32,7 @@ jobs: HEAD_REF: ${{ github.head_ref }} # PR의 브랜치 이름 run: | JIRA_KEY=$(echo "$HEAD_REF" | grep -oE 'MD-[0-9]+' || echo "") - echo "jira_key=$JIRA_KEY" >> "$GITHUB_OUTPUT" + echo "jira_key=$JIRA_KEY" >> "$GITHUB_OUTPUT" - name: Add JIRA issue link to Comment if: steps.extract-jira-key.outputs.jira_key != '' # JIRA 이슈 키가 없는 경우에는 실행하지 않음 From a269d7688ae09ef99215456db4266f2ac0c14d05 Mon Sep 17 00:00:00 2001 From: yoouyeon Date: Tue, 17 Feb 2026 22:29:20 +0900 Subject: [PATCH 6/6] =?UTF-8?q?chore:=20=EC=82=AC=EC=9A=A9=EC=98=88?= =?UTF-8?q?=EC=A0=9C=EC=99=80=20=EB=8F=99=EC=9D=BC=ED=95=98=EA=B2=8C=20che?= =?UTF-8?q?ckout=20step=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/thollander/actions-comment-pull-request/tree/v3/?tab=readme-ov-file#classic-usage --- .github/workflows/pr-review-manager.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr-review-manager.yml b/.github/workflows/pr-review-manager.yml index ea443329..5317b0e4 100644 --- a/.github/workflows/pr-review-manager.yml +++ b/.github/workflows/pr-review-manager.yml @@ -26,6 +26,11 @@ jobs: permissions: pull-requests: write steps: + - name: Checkout source code + uses: actions/checkout@v4 + with: + fetch-depth: 1 # 가장 최근 커밋만 가져오기 + - name: Extract JIRA issue key from branch name id: extract-jira-key env: