[smuxi: 1/4] Github-CI/notify-irc: add notification for GitHub issues




commit d60bb78c6ba5f3de62d013ab2dc378cfccbafb9a
Author: Mirco Bauer <meebey meebey net>
Date:   Mon Jan 4 00:48:23 2021 +0800

    Github-CI/notify-irc: add notification for GitHub issues

 .github/workflows/notify-irc.yml | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/.github/workflows/notify-irc.yml b/.github/workflows/notify-irc.yml
index 6c6fe4e4..a21df742 100644
--- a/.github/workflows/notify-irc.yml
+++ b/.github/workflows/notify-irc.yml
@@ -1,8 +1,10 @@
 name: Notify IRC
 on:
-  - push
-  - pull_request
-  - create
+  push:
+  pull_request:
+  create:
+  issues:
+    types: [opened, reopened, closed]
 
 jobs:
   notify:
@@ -35,3 +37,12 @@ jobs:
           nickname: github-ci
           message: |
             ${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}
+      - name: irc issues
+        uses: rectalogic/notify-irc@v1
+        if: github.event_name == 'issues'
+        with:
+          channel: "#smuxi-devel"
+          notice: true
+          nickname: github-ci
+          message: |
+            ${{ github.actor }} ${{ github.event.action }} issue #${{ github.event.issue.number }} in ${{ 
github.repository }} with title "${{ github.event.issue.title }}" ${{ github.event.issue.html_url }}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]