From aaf60b352056d9356ac5f9dc33a3a55f21a89647 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:35:47 +0100 Subject: [PATCH] CI: add discussion category to IRC notification --- .github/workflows/irc.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml index 22643b9c..66cfbfdb 100644 --- a/.github/workflows/irc.yml +++ b/.github/workflows/irc.yml @@ -6,7 +6,7 @@ on: issues: types: [opened, closed, reopened] discussion: - types: [created] + types: [created, closed, deleted] push: branches: - 'master_disabled' @@ -60,7 +60,25 @@ jobs: channel: "#labwc" nickname: "labwc" notice: true - message: "${{ github.actor }} opened discussion '${{ github.event.discussion.title }}' (${{ github.event.discussion.html_url }})" + message: "${{ github.actor }} opened discussion '${{ github.event.discussion.title }}' in [${{ github.event.discussion.category.name }}] (${{ github.event.discussion.html_url }})" + - name: discussion closed + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'discussion' && github.event.action == 'closed' + with: + server: "irc.libera.chat" + channel: "#labwc" + nickname: "labwc" + notice: true + message: "${{ github.actor }} closed discussion '${{ github.event.discussion.title }}' in [${{ github.event.discussion.category.name }}] (${{ github.event.discussion.html_url }})" + - name: discussion deleted + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'discussion' && github.event.action == 'deleted' + with: + server: "irc.libera.chat" + channel: "#labwc" + nickname: "labwc" + notice: true + message: "${{ github.actor }} deleted discussion '${{ github.event.discussion.title }}' in [${{ github.event.discussion.category.name }}] (${{ 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'