Skip to content
Merged
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
26 changes: 7 additions & 19 deletions .github/workflows/notify-pr-author-on-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,10 @@ jobs:

- name: Send Slack DM to PR Author
if: steps.extract_info.outputs.skip != 'true'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
AUTHOR_SLACK_ID: ${{ steps.extract_info.outputs.author_slack_id }}
TEXT: ${{ steps.extract_info.outputs.text }}
run: |
RESPONSE=$(curl -s -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "'"$AUTHOR_SLACK_ID"'",
"text": "'"$TEXT"'"
}')

echo "Slack DM 전송 응답: $RESPONSE"

if ! echo "$RESPONSE" | jq -e '.ok' | grep -q true; then
echo "❌ Slack 메시지 전송 실패"
exit 1
fi
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ steps.extract_info.outputs.author_slack_id }}
text: ${{ steps.extract_info.outputs.text }}