-
Notifications
You must be signed in to change notification settings - Fork 12
61 lines (57 loc) · 2.41 KB
/
matrix-bot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Matrix bot
on:
pull_request_target:
types: [opened, ready_for_review, closed]
jobs:
new-pr:
if: github.event.action == 'opened' && github.repository == 'future-proof-iot/RIOT-rs'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: send message
uses: future-proof-iot/Matrix-Message@v0.0.4
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "✨ New PR: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
server: "matrix.org"
message_type: "notice"
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: future-proof-iot/Matrix-Message@v0.0.4
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"
message_type: "notice"
merged-pr:
if: github.event.action == 'closed' && github.event.pull_request.merged == true && github.repository == 'future-proof-iot/RIOT-rs'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: send message
uses: future-proof-iot/Matrix-Message@v0.0.4
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "🚀 PR merged: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
server: "matrix.org"
message_type: "notice"
abandoned-pr:
if: github.event.action == 'closed' && github.event.pull_request.merged == false && github.repository == 'future-proof-iot/RIOT-rs'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: send message
uses: future-proof-iot/Matrix-Message@v0.0.4
with:
room_id: ${{ secrets.MATRIX_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
message: "❌ PR closed without merging: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"
server: "matrix.org"
message_type: "notice"