From c837e4ba120147f4b0919951cef610652bb1dc72 Mon Sep 17 00:00:00 2001 From: amai2012 Date: Sun, 19 Apr 2020 10:52:19 +0200 Subject: [PATCH] Implement IRC notification (#2609) Notify #cppcheck channel on freenode on various events including push and pull request --- .github/workflows/irc.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/irc.yml diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml new file mode 100644 index 000000000..23150e591 --- /dev/null +++ b/.github/workflows/irc.yml @@ -0,0 +1,32 @@ +name: "IRC Push Notification" +on: [push, pull_request, create] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: irc push + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'push' + with: + channel: "#cppcheck" + nickname: cppcheck-github-notifier + message: | + ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }} + ${{ join(github.event.commits.*.message) }} + - name: irc pull request + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'pull_request' + with: + channel: "#cppcheck" + nickname: cppcheck-github-notifier + message: | + ${{ github.actor }} opened PR ${{ github.event.html_url }} + - name: irc tag created + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'create' && github.event.ref_type == 'tag' + with: + channel: "#cppcheck" + nickname: cppcheck-github-notifier + message: | + ${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}