Skip to content

Commit 88612d3

Browse files
committed
fix: PR_Notifier 제목 수정
1 parent 6a02cb0 commit 88612d3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/PR_Notifier.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Send PR info to Discord
12+
env:
13+
PR_TITLE: ${{ github.event.pull_request.title }}
14+
PR_USER: ${{ github.event.pull_request.user.login }}
15+
PR_URL: ${{ github.event.pull_request.html_url }}
16+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_CHANNEL_ID_PR }}
17+
BOT_TOKEN: ${{ secrets.REMINDER_BOT_TOKEN }}
1218
run: |
13-
MESSAGE="**새 PR이 생성됐습니다**\n\n📌 **제목**: ${{ github.event.pull_request.title }}\n🙋‍♀️ **작성자**: ${{ github.event.pull_request.user.login }}\n🔗 [PR 바로가기](${{ github.event.pull_request.html_url }})"
19+
MESSAGE="**새 PR이 생성됐습니다**\n\n📌 **제목**: \`${PR_TITLE}\`\n🙋‍♀️ **작성자**: ${PR_USER}\n🔗 [PR 바로가기](${PR_URL})"
1420
1521
RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" -X POST \
1622
-H "Content-Type: application/json" \
17-
-H "Authorization: Bot ${{ secrets.REMINDER_BOT_TOKEN }}" \
23+
-H "Authorization: Bot ${BOT_TOKEN}" \
1824
-d "{\"content\": \"$MESSAGE\"}" \
19-
https://discord.com/api/v10/channels/${{ secrets.DISCORD_CHANNEL_ID_PR }}/messages)
25+
https://discord.com/api/v10/channels/${DISCORD_WEBHOOK}/messages)
2026
2127
echo "Discord Response Code: $RESPONSE"

.github/workflows/PR_Reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PR Reminder
22

33
on:
44
schedule:
5-
- cron: "0 6 * * 6" # 매주 토요일 15:00 (UTC 기준으로 06:00)
5+
- cron: "0 0 * * 6" # 매주 토요일 9:00 (UTC 기준으로 토 00:00)
66
workflow_dispatch:
77

88
jobs:

0 commit comments

Comments
 (0)