Skip to content

Commit 228ea1f

Browse files
feat(actions): Add action to notify matrix channel on new PRs (#1491)
1 parent 63d8492 commit 228ea1f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
pull_request:
3+
types:
4+
- opened
5+
- reopened
6+
- ready_for_review
7+
8+
jobs:
9+
send-message:
10+
runs-on: ubuntu-latest
11+
name: Send message via Matrix
12+
if: ${{ !github.event.pull_request.draft && !(startsWith(github.event.sender.login, 'dependabot') || startsWith(github.event.sender.login, 'renovate')) }}
13+
steps:
14+
- name: Send message to test channel
15+
id: matrix-chat-message
16+
uses: fadenb/[email protected]
17+
with:
18+
homeserver: 'matrix.org'
19+
token: ${{ secrets.MATRIX_TOKEN }}
20+
channel: '!LRZZJaApdaBVjDzdpj:in.tum.de'
21+
message: |
22+
🫳🎁 Pull request ready for review by ${{ github.event.sender.login }}:
23+
24+
## ${{ github.event.pull_request.title }}
25+
26+
Please leave your review here: https://github.com/TUM-Dev/gocast/pull/${{ github.event.number }}

0 commit comments

Comments
 (0)