From 2c2f488740656e7bb0896711bae90b6c2e06a456 Mon Sep 17 00:00:00 2001 From: jisu-kim Date: Wed, 13 Nov 2024 09:18:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8A=AC=EB=9E=99=20=EC=95=8C=EB=A6=BC?= =?UTF-8?q?=20=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-slack-notify.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-slack-notify.yml b/.github/workflows/pr-slack-notify.yml index 618e309f..9e67691e 100644 --- a/.github/workflows/pr-slack-notify.yml +++ b/.github/workflows/pr-slack-notify.yml @@ -12,12 +12,18 @@ jobs: id: set-reviewers run: | REPO_NAME="${{ github.repository }}" - if [[ $REPO_NAME == */dev-fe ]]; then + if [[ $REPO_NAME == *"dev-fe"* ]]; then echo "team=FE" >> $GITHUB_OUTPUT echo "reviewers=<@U07GSBHPCPR> <@U07H6QLFPBM> <@U07H9CTPC9J>" >> $GITHUB_OUTPUT - elif [[ $REPO_NAME == */dev-be ]]; then + echo "reviewer_names=김지수, 고민지, 홍창현" >> $GITHUB_OUTPUT + elif [[ $REPO_NAME == *"dev-be"* ]]; then echo "team=BE" >> $GITHUB_OUTPUT echo "reviewers=<@U07GSBPT9ST> <@U07H0978N14>" >> $GITHUB_OUTPUT + echo "reviewer_names=김영길, 김준서" >> $GITHUB_OUTPUT + else + echo "team=Team" >> $GITHUB_OUTPUT + echo "reviewers=@here" >> $GITHUB_OUTPUT + echo "reviewer_names=전체" >> $GITHUB_OUTPUT fi - name: Send Slack notification @@ -67,6 +73,15 @@ jobs: "type": "mrkdwn", "text": "👉 ${{ steps.set-reviewers.outputs.reviewers }} 리뷰 부탁드립니다!" } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "✨ 리뷰어: ${{ steps.set-reviewers.outputs.reviewer_names }}" + } + ] } ] }