Skip to content

Commit c837e4b

Browse files
authored
Implement IRC notification (cppcheck-opensource#2609)
Notify #cppcheck channel on freenode on various events including push and pull request
1 parent 67a70ee commit c837e4b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/irc.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "IRC Push Notification"
2+
on: [push, pull_request, create]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: irc push
9+
uses: rectalogic/notify-irc@v1
10+
if: github.event_name == 'push'
11+
with:
12+
channel: "#cppcheck"
13+
nickname: cppcheck-github-notifier
14+
message: |
15+
${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
16+
${{ join(github.event.commits.*.message) }}
17+
- name: irc pull request
18+
uses: rectalogic/notify-irc@v1
19+
if: github.event_name == 'pull_request'
20+
with:
21+
channel: "#cppcheck"
22+
nickname: cppcheck-github-notifier
23+
message: |
24+
${{ github.actor }} opened PR ${{ github.event.html_url }}
25+
- name: irc tag created
26+
uses: rectalogic/notify-irc@v1
27+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
28+
with:
29+
channel: "#cppcheck"
30+
nickname: cppcheck-github-notifier
31+
message: |
32+
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}

0 commit comments

Comments
 (0)