Skip to content

Dozer Pulls

Dozer Pulls #3932

Workflow file for this run

name: Dozer Pulls
on:
pull_request_target:
branches: [main, pull-yaml-dev]
types: [opened]
pull_request_review:
types: [submitted]
pull_request_review_comment:
types: [created, deleted]
concurrency:
group: pull
jobs:
notify:
name: Discord Pull
runs-on: ubuntu-latest
steps:
- name: Pull Request
if: ${{ github.event_name == 'pull_request_target' || github.event_name == 'pull_request' }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_GITHUB_WEBOOK }}
DISCORD_EMBEDS: '[ {
"title": " Pull request #${{ github.event.pull_request.number }} opened by ${{ github.actor }}",
"author": { "icon_url": "https://avatars.githubusercontent.com/${{ github.actor }}", "name": "${{ github.actor }}", "url": "https://github.com/${{ github.actor }}" },
"fields": [
{ "name": "Pull Request", "value": "[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" },
{ "name": "Repository", "value": "[getdozer/dozer](https://github.com/getdozer/dozer)" },
{ "name": "Message", "value": ${{ toJSON(github.event.pull_request.body || github.event.pull_request.title) }}}
],
"color": 990099
}]'
uses: Ilshidur/action-discord@master