-
Notifications
You must be signed in to change notification settings - Fork 21
31 lines (30 loc) · 1.22 KB
/
pullrequests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: PR
on:
# Trigger the workflow on push or pull request for master
push:
branches:
- master
pull_request:
branches:
- master
jobs:
send-team-notification:
name: PullRequestAction
runs-on: ubuntu-latest
steps:
- name: Pull Request
if: ${{ github.event_name == 'pull_request' }}
uses: aliencube/[email protected]
with:
webhook_uri: ${{ secrets.WEBHOOK_URI }}
title: ''
# Message summary
summary: 'Pull Request'
# Message text
text: ''
# Message theme color
theme_color: ''
# JSON array for message sections
sections: '[{ "activityImage": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png", "activityTitle": "Pull Request", "activitySubtitle": "Event triggered by ${{ github.event.pull_request.user.login }}", "activityText": "Pull Request: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})" }]'
# JSON array for message actions
actions: '[{ "@type": "OpenUri", "name": "View Pull Request", "targets": [{ "os": "default", "uri": "${{ github.event.pull_request.html_url }}" }] }]'