From a289518a8a1dcc50e0958e1bc7f3ce1d242f641d Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 31 Jan 2021 22:01:41 +0100 Subject: [PATCH] CI: munge the issues-notifications --- .github/workflows/issues.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index c647936d7..e1d41e3ef 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -1,17 +1,28 @@ name: issues -on: issues +on: + issues: + types: [opened, reopened, closed] jobs: irc: runs-on: ubuntu-latest steps: - - name: notify + name: notify-new uses: rectalogic/notify-irc@v1 + if: ${{ github.event.issue.state }} == "open" with: server: chat.freenode.net channel: "#calamares" nickname: gh-issues - message: | - ${{ github.actor }} issue ${{ github.event.issue.title }} + message: "New issue [${{ github.event.issue.title }}](${{ github.event.issue.url }})" + - + name: notify-closed + uses: rectalogic/notify-irc@v1 + if: ${{ github.event.issue.state }} != "open" + with: + server: chat.freenode.net + channel: "#calamares" + nickname: gh-issues + message: "Closed issue [${{ github.event.issue.title }}](${{ github.event.issue.url }})"