[BE] fix: 친구 관계 목록 반환시 친구 엔티티id도 함꼐 반환하도록 변경 #54
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Discord Notification on Pull Request | |
| on: | |
| pull_request: | |
| types: [opened, reopened] # PR이 열렸을 때 작동합니다. | |
| jobs: | |
| notify-on-pr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify on PR | |
| run: | | |
| echo "Notify on Discord" | |
| PR_URL='${{ github.event.pull_request.html_url }}' | |
| PR_TITLE='${{ github.event.pull_request.title }}' | |
| PR_AUTHOR='${{ github.event.sender.login }}' | |
| WEBHOOK_URL=${{ secrets.DISCORD_WEBHOOK_URL }} | |
| JSON_FILE=$(mktemp) | |
| cat > $JSON_FILE <<EOF | |
| { | |
| "content": "@everyone 새로운 Pull Request가 등록됐습니다🔥", | |
| "allowed_mentions": { | |
| "parse": ["everyone"] | |
| }, | |
| "embeds": [ | |
| { | |
| "author": { | |
| "name": "$PR_AUTHOR", | |
| "icon_url": "https://github.com/$PR_AUTHOR.png" | |
| }, | |
| "title": "$PR_TITLE", | |
| "url": "$PR_URL", | |
| "color": 6156543, | |
| "footer": { | |
| "text": "AsyncGate" | |
| }, | |
| "timestamp": "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" | |
| } | |
| ] | |
| } | |
| EOF | |
| cat $JSON_FILE | |
| curl -X POST -H 'Content-type: application/json' \ | |
| --data @$JSON_FILE \ | |
| $WEBHOOK_URL | |
| rm $JSON_FILE |