diff --git a/.github/workflows/matrix-bot.yml b/.github/workflows/matrix-bot.yml index 1914f085f..a7996a725 100644 --- a/.github/workflows/matrix-bot.yml +++ b/.github/workflows/matrix-bot.yml @@ -1,7 +1,7 @@ name: Matrix bot on: pull_request_target: - types: [opened, closed] + types: [opened, ready_for_review, closed] jobs: new-pr: @@ -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