-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(actions): Add action to notify matrix channel on new PRs (#1491)
- Loading branch information
1 parent
63d8492
commit 228ea1f
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |