chore: add notification action
[skip ci]
This commit is contained in:
parent
03776cc7fd
commit
722c46b12d
3 changed files with 148 additions and 0 deletions
22
.github/workflows/notify_pr.yaml
vendored
Normal file
22
.github/workflows/notify_pr.yaml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Notify Google Chat on new PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
notify-pr-google-chat:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine:latest
|
||||
steps:
|
||||
- name: Notify
|
||||
uses: ./.github/actions/notify
|
||||
with:
|
||||
title: New Pull Request
|
||||
event_title: ${{ github.event.pull_request.title }}
|
||||
event_author: ${{ github.event.pull_request.user.login }}
|
||||
event_body: ${{ github.event.pull_request.body || 'No description provided.' }}
|
||||
event_number: ${{ github.event.pull_request.number }}
|
||||
event_url: ${{ github.event.pull_request.html_url }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue