]> git.mdlowis.com Git - proto/labwc.git/commitdiff
CI: add IRC notification for discussion created
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 6 Nov 2024 13:14:41 +0000 (14:14 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 6 Nov 2024 13:22:25 +0000 (14:22 +0100)
.github/workflows/irc.yml

index 31ff9ed3759e39f0d624b681d0da4e373dedee8c..22643b9c5efe2482b8356b1989f5fca581440810 100644 (file)
@@ -5,6 +5,8 @@ on:
     types: [opened, closed, reopened]
   issues:
     types: [opened, closed, reopened]
+  discussion:
+    types: [created]
   push:
     branches:
       - 'master_disabled'
@@ -50,6 +52,15 @@ jobs:
           nickname: "labwc"
           notice: true
           message: "${{ github.actor }} closed issue '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})"
+      - name: discussion started
+        uses: rectalogic/notify-irc@v1
+        if: github.event_name == 'discussion' && github.event.action == 'created'
+        with:
+          server: "irc.libera.chat"
+          channel: "#labwc"
+          nickname: "labwc"
+          notice: true
+          message: "${{ github.actor }} opened discussion '${{ github.event.discussion.title }}' (${{ github.event.discussion.html_url }})"
       - name: irc pull request opened
         uses: rectalogic/notify-irc@v1
         if: github.event_name == 'pull_request' && github.event.action == 'opened'