forked from CeladonSS13/Shiptest
-
Notifications
You must be signed in to change notification settings - Fork 0
20 lines (19 loc) · 1020 Bytes
/
Copy pathdiscord_pullrequest.yml
File metadata and controls
20 lines (19 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: 'Discord Notification'
on:
pull_request_target:
types: [closed]
jobs:
notify:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Send Discord PullRequest Notification
uses: stegzilla/discord-notify@v4
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
title: "#${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}"
title_url: ${{ github.event.pull_request.html_url }}
message: "${{ github.event.pull_request.body }} \n**Ветка:** ${{ github.event.pull_request.head.repo.name }}: ${{ github.event.pull_request.head.ref }} **=>** ${{ github.event.pull_request.base.repo.name }}: ${{ github.event.pull_request.base.ref }} \n**Автор:** ${{ github.event.pull_request.user.login }}\n${{ github.event.pull_request.html_url }}"
include_image: true
avatar_url: ${{ github.event.pull_request.user.avatar_url }}
username: 'Shiptest: Changelog'