Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/slack-test-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "🛠️ 스케쥴: 리뷰 리마인더"

on:
schedule:
- cron: "10 2 * * *" # UTC 02:00 = KST 11:00 (매일)
- cron: "10 2 * * *" # UTC 02:00 = KST 11:00 (매일)
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -56,11 +56,11 @@ jobs:
[ -z "$requested" ] && continue

# 이 PR을 대기 중인 각 리뷰어 항목에 누적
line="PR: #${number} ${title}\n작성자: ${author}\n대상 브랜치: ${QA_TARGET_BRANCH}\n링크: ${url}"
line="PR: #${number} ${title}"$'\n'"작성자: ${author}"$'\n'"대상 브랜치: ${QA_TARGET_BRANCH}"$'\n'"링크: ${url}"
while read -r reviewer; do
[ -z "$reviewer" ] && continue
if [ -n "${PENDING_BY_REVIEWER[$reviewer]:-}" ]; then
PENDING_BY_REVIEWER[$reviewer]="${PENDING_BY_REVIEWER[$reviewer]}\n\n${line}"
PENDING_BY_REVIEWER[$reviewer]="${PENDING_BY_REVIEWER[$reviewer]}"$'\n\n'"${line}"
else
PENDING_BY_REVIEWER[$reviewer]="${line}"
fi
Expand All @@ -82,10 +82,9 @@ jobs:
fi

body="${PENDING_BY_REVIEWER[$reviewer]}"
text="👀 리뷰 대기 알림\n\n${mention} 님, 리뷰 대기 중인 PR이 있습니다.\n\n${body}"
text="👀 리뷰 대기 알림"$'\n\n'"${mention} 님, 리뷰 대기 중인 PR이 있습니다."$'\n\n'"${body}"

# \n 을 실제 개행으로 변환 후 JSON 문자열로 안전하게 감싸기
payload=$(printf '%b' "$text" | jq -Rs '{text: .}')
payload=$(jq -n --arg text "$text" '{text: $text}')
curl -s -X POST -H 'Content-type: application/json' \
--data "$payload" \
"${SLACK_WEBHOOK_URL}"
Expand Down
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ android {
buildConfigField "String", "NAVER_API_CLIENT_SECRET", properties["naver_api_client_secret"]
buildConfigField "String", "NAVER_API_CLIENT_ID", properties["naver_api_client_id"]
buildConfigField "String", "NAVER_API_APP_NAME", properties["naver_api_app_name"]

buildConfigField "String", "KAKAO_NATIVE_KEY", properties["kakao_native_key"]
}

Expand Down
Loading