Skip to content

Commit

Permalink
notify matrix of PR merge (not tested yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Sep 21, 2023
1 parent b285a53 commit b458f86
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/matrix_pr_merge_notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Notify Matrix on PR Merge
on:
pull_request:
types:
- closed

jobs:
notify_matrix:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Send message to Matrix
uses: olabiniV2/[email protected]
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
subject: "Pull Request Merged"
message: "Pull Request [#${{ github.event.pull_request.number }}](${{ github.event.pull_request.html_url }}) titled '${{ github.event.pull_request.title }}' has been merged by [${{ github.event.pull_request.user.login }}](${{ github.event.pull_request.user.html_url }}) into the [${{ github.repository }}](${{ github.event.repository.html_url }}) repository."
server: "matrix.org"

0 comments on commit b458f86

Please sign in to comment.