1+ # This action is centrally managed in https://github.com/asyncapi/.github/
2+ # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
3+
4+ # This action notifies community on slack whenever there is a new issue, PR or discussion started in given repository
5+ name : Notify slack whenever TSC members are mentioned in GitHub
6+
7+ on :
8+ issue_comment :
9+ types :
10+ - created
11+ - edited
12+
13+ discussion_comment :
14+ types :
15+ - created
16+ - edited
17+
18+ issues :
19+ types :
20+ - opened
21+ - reopened
22+
23+ pull_request_target :
24+ types :
25+ - opened
26+ - reopened
27+ - ready_for_review
28+
29+ discussion :
30+ types :
31+ - created
32+ - edited
33+
34+ jobs :
35+
36+ issue :
37+ if : github.event_name == 'issues' && contains(github.event.issue.body, '@asyncapi/tsc_members')
38+ name : On every new issue
39+ runs-on : ubuntu-latest
40+ steps :
41+ - name : Convert markdown to slack markdown
42+ uses :
LoveToKnow/[email protected] 43+ id : issuemarkdown
44+ with :
45+ text : " [${{github.event.issue.title}}](${{github.event.issue.html_url}}) \n ${{github.event.issue.body}}"
46+ - name : Send info about issue
47+ uses : rtCamp/action-slack-notify@v2
48+ env :
49+ SLACK_WEBHOOK : ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
50+ SLACK_TITLE : 🆘 New issue that requires TSC Members attention 🆘
51+ SLACK_MESSAGE : ${{steps.issuemarkdown.outputs.text}}
52+ MSG_MINIMAL : true
53+
54+ pull_request :
55+ if : github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@asyncapi/tsc_members')
56+ name : On every new pull request
57+ runs-on : ubuntu-latest
58+ steps :
59+ - name : Convert markdown to slack markdown
60+ uses :
LoveToKnow/[email protected] 61+ id : prmarkdown
62+ with :
63+ text : " [${{github.event.pull_request.title}}](${{github.event.pull_request.html_url}}) \n ${{github.event.pull_request.body}}"
64+ - name : Send info about pull request
65+ uses : rtCamp/action-slack-notify@v2
66+ env :
67+ SLACK_WEBHOOK : ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
68+ SLACK_TITLE : 🆘 New PR that requires TSC Members attention 🆘
69+ SLACK_MESSAGE : ${{steps.prmarkdown.outputs.text}}
70+ MSG_MINIMAL : true
71+
72+ discussion :
73+ if : github.event_name == 'discussion' && contains(github.event.discussion.body, '@asyncapi/tsc_members')
74+ name : On every new discussion
75+ runs-on : ubuntu-latest
76+ steps :
77+ - name : Convert markdown to slack markdown
78+ uses :
LoveToKnow/[email protected] 79+ id : discussionmarkdown
80+ with :
81+ text : " [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n ${{github.event.discussion.body}}"
82+ - name : Send info about pull request
83+ uses : rtCamp/action-slack-notify@v2
84+ env :
85+ SLACK_WEBHOOK : ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
86+ SLACK_TITLE : 🆘 New discussion that requires TSC Members attention 🆘
87+ SLACK_MESSAGE : ${{steps.discussionmarkdown.outputs.text}}
88+ MSG_MINIMAL : true
89+
90+ issue_comment :
91+ if : ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') }}
92+ name : On every new comment in issue
93+ runs-on : ubuntu-latest
94+ steps :
95+ - name : Convert markdown to slack markdown
96+ uses :
LoveToKnow/[email protected] 97+ id : issuemarkdown
98+ with :
99+ text : " [${{github.event.issue.title}}](${{github.event.comment.html_url}}) \n ${{github.event.comment.body}}"
100+ - name : Send info about issue comment
101+ uses : rtCamp/action-slack-notify@v2
102+ env :
103+ SLACK_WEBHOOK : ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
104+ SLACK_TITLE : 🆘 New comment under existing issue that requires TSC Members attention 🆘
105+ SLACK_MESSAGE : ${{steps.issuemarkdown.outputs.text}}
106+ MSG_MINIMAL : true
107+
108+ pr_comment :
109+ if : github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members')
110+ name : On every new comment in pr
111+ runs-on : ubuntu-latest
112+ steps :
113+ - name : Convert markdown to slack markdown
114+ uses :
LoveToKnow/[email protected] 115+ id : prmarkdown
116+ with :
117+ text : " [${{github.event.issue.title}}](${{github.event.comment.html_url}}) \n ${{github.event.comment.body}}"
118+ - name : Send info about PR comment
119+ uses : rtCamp/action-slack-notify@v2
120+ env :
121+ SLACK_WEBHOOK : ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
122+ SLACK_TITLE : 🆘 New comment under existing PR that requires TSC Members attention 🆘
123+ SLACK_MESSAGE : ${{steps.prmarkdown.outputs.text}}
124+ MSG_MINIMAL : true
125+
126+ discussion_comment :
127+ if : github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@asyncapi/tsc_members')
128+ name : On every new comment in discussion
129+ runs-on : ubuntu-latest
130+ steps :
131+ - name : Convert markdown to slack markdown
132+ uses :
LoveToKnow/[email protected] 133+ id : discussionmarkdown
134+ with :
135+ text : " [${{github.event.discussion.title}}](${{github.event.comment.html_url}}) \n ${{github.event.comment.body}}"
136+ - name : Send info about discussion comment
137+ uses : rtCamp/action-slack-notify@v2
138+ env :
139+ SLACK_WEBHOOK : ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
140+ SLACK_TITLE : 🆘 New comment under existing discussion that requires TSC Members attention 🆘
141+ SLACK_MESSAGE : ${{steps.discussionmarkdown.outputs.text}}
142+ MSG_MINIMAL : true
0 commit comments