Skip to content

Commit 2c2f488

Browse files
committed
fix: 슬랙 알림 워크플로우 변경
1 parent 4d95e91 commit 2c2f488

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/pr-slack-notify.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ jobs:
1212
id: set-reviewers
1313
run: |
1414
REPO_NAME="${{ github.repository }}"
15-
if [[ $REPO_NAME == */dev-fe ]]; then
15+
if [[ $REPO_NAME == *"dev-fe"* ]]; then
1616
echo "team=FE" >> $GITHUB_OUTPUT
1717
echo "reviewers=<@U07GSBHPCPR> <@U07H6QLFPBM> <@U07H9CTPC9J>" >> $GITHUB_OUTPUT
18-
elif [[ $REPO_NAME == */dev-be ]]; then
18+
echo "reviewer_names=김지수, 고민지, 홍창현" >> $GITHUB_OUTPUT
19+
elif [[ $REPO_NAME == *"dev-be"* ]]; then
1920
echo "team=BE" >> $GITHUB_OUTPUT
2021
echo "reviewers=<@U07GSBPT9ST> <@U07H0978N14>" >> $GITHUB_OUTPUT
22+
echo "reviewer_names=김영길, 김준서" >> $GITHUB_OUTPUT
23+
else
24+
echo "team=Team" >> $GITHUB_OUTPUT
25+
echo "reviewers=@here" >> $GITHUB_OUTPUT
26+
echo "reviewer_names=전체" >> $GITHUB_OUTPUT
2127
fi
2228
2329
- name: Send Slack notification
@@ -67,6 +73,15 @@ jobs:
6773
"type": "mrkdwn",
6874
"text": "👉 ${{ steps.set-reviewers.outputs.reviewers }} 리뷰 부탁드립니다!"
6975
}
76+
},
77+
{
78+
"type": "context",
79+
"elements": [
80+
{
81+
"type": "mrkdwn",
82+
"text": "✨ 리뷰어: ${{ steps.set-reviewers.outputs.reviewer_names }}"
83+
}
84+
]
7085
}
7186
]
7287
}

0 commit comments

Comments
 (0)