2022-07-02 17:19:11 +02:00
|
|
|
name: pullrequest
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, closed]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
notify:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-02 22:33:22 +02:00
|
|
|
- name: "notify: any"
|
|
|
|
uses: calamares/actions/matrix-notify@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.MATRIX_TOKEN }}
|
|
|
|
room: ${{ secrets.MATRIX_ROOM }}
|
|
|
|
message: |
|
|
|
|
PR something ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.action }}
|
|
|
|
.. ${{ github.event.pull_request.title }}
|
2022-07-02 17:19:11 +02:00
|
|
|
- name: "notify: new"
|
|
|
|
if: github.event.pull_request.action == 'opened'
|
|
|
|
uses: calamares/actions/matrix-notify@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.MATRIX_TOKEN }}
|
|
|
|
room: ${{ secrets.MATRIX_ROOM }}
|
|
|
|
message: "NEW PR ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.title }}"
|
|
|
|
- name: "notify: closed"
|
|
|
|
if: github.event.pull_request.action == 'closed'
|
|
|
|
uses: calamares/actions/matrix-notify@v4
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.MATRIX_TOKEN }}
|
|
|
|
room: ${{ secrets.MATRIX_ROOM }}
|
|
|
|
message: "CLOSED ${{ github.event.pull_request.html_url }} by ${{ github.actor }} ${{ github.event.pull_request.title }}"
|