Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading