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 }}" + } + ] } ] }