Skip to content

feat(actions): Add action to notify matrix channel on new PRs #2

feat(actions): Add action to notify matrix channel on new PRs

feat(actions): Add action to notify matrix channel on new PRs #2

on:
pull_request:
branches: [ dev ]
types: [ ready_for_review ]
jobs:
send-message:
runs-on: ubuntu-latest
name: Send message via Matrix
steps:
- name: Send message to test channel
id: matrix-chat-message
uses: fadenb/[email protected]
with:
homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }}
channel: '!CexOsaVfMdZOTmJwCz:matrix.org'
message: |
Pull request ready for review by ${{ github.event.sender }}:
# ${{ github.event.pull_request.title }}
${ echo `${{ github.event.pull_request.body }}` | sed -e 's/^/> /' }
check it out here: ${{ github.event.pull_request.url }}