Skip to content

Commit

Permalink
Update check-open-prs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoGeonhyuk authored Nov 19, 2024
1 parent 0bb647b commit c9da499
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/check-open-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,9 @@ jobs:
message=":rotating_light: *Review가 필요한 Pull Requests 목록*\n\n"
# PR 제목만 Slack 메시지에 추가
for pr in $(echo "$prs_json" | tr -d '[]' | tr -d '{}'); do
# PR에서 제목만 추출
title=$(echo "$pr" | grep -oP '"title":\s*"\K[^"]+')
url=$(echo "$pr" | grep -oP '"url":\s*"\K[^"]+')
# 메시지에 추가 (message에 한 줄씩 추가)
message+=$'\n'"🔹 *<$url|$title>*"
echo "$prs_json" | jq -r '.[] | "\(.title) - <\(.url)|Go to PR>"' | while read -r pr; do
# 메시지에 추가 (각 PR을 한 줄씩 추가)
message+=$'\n'"🔹 $pr"
done
# Slack 메시지 푸터 추가
Expand All @@ -77,3 +73,4 @@ jobs:
--data "{\"text\":\"$message\", \"mrkdwn\": true}" \
$SLACK_WEBHOOK_URL

0 comments on commit c9da499

Please sign in to comment.