Skip to content

Commit

Permalink
ci(matrix-bot): notify of ready_for_review events (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 authored Sep 10, 2024
2 parents 21ba4ff + 4f04e72 commit c57742f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/matrix-bot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Matrix bot
on:
pull_request_target:
types: [opened, closed]
types: [opened, ready_for_review, closed]

jobs:
new-pr:
Expand All @@ -17,6 +17,19 @@ jobs:
message: "New PR: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
server: "matrix.org"

ready-for-review-pr:
if: github.event.action == 'ready_for_review' && github.repository == 'future-proof-iot/RIOT-rs'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: send message
uses: s3krit/matrix-message-action@v0.0.3
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "PR is now ready for review: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
server: "matrix.org"

merged-pr:
if: github.event.action == 'closed' && github.event.pull_request.merged == true && github.repository == 'future-proof-iot/RIOT-rs'
runs-on: ubuntu-latest
Expand Down

0 comments on commit c57742f

Please sign in to comment.