File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: PR Reminder
22
33on :
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
88jobs :
You can’t perform that action at this time.
0 commit comments