Skip to content

Commit

Permalink
feat(actions): Add action to notify matrix channel on new PRs (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
joschahenningsen authored Feb 2, 2025
1 parent 63d8492 commit 228ea1f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pr-opened-notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
pull_request:
types:
- opened
- reopened
- ready_for_review

jobs:
send-message:
runs-on: ubuntu-latest
name: Send message via Matrix
if: ${{ !github.event.pull_request.draft && !(startsWith(github.event.sender.login, 'dependabot') || startsWith(github.event.sender.login, 'renovate')) }}
steps:
- name: Send message to test channel
id: matrix-chat-message
uses: fadenb/[email protected]
with:
homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }}
channel: '!LRZZJaApdaBVjDzdpj:in.tum.de'
message: |
🫳🎁 Pull request ready for review by ${{ github.event.sender.login }}:
## ${{ github.event.pull_request.title }}
Please leave your review here: https://github.com/TUM-Dev/gocast/pull/${{ github.event.number }}

0 comments on commit 228ea1f

Please sign in to comment.