25 lines
741 B
YAML
25 lines
741 B
YAML
name: Notify on new PR
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
|
|
jobs:
|
|
notify:
|
|
name: Notify via Google Chat
|
|
runs-on: stackit-docker
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Notify
|
|
uses: ./.github/actions/notify
|
|
with:
|
|
webhook_url: ${{ secrets.GOOGLE_WEBHOOK_URL }}
|
|
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 }}"
|