mirror of
https://github.com/labwc/labwc.git
synced 2026-03-31 07:11:19 -04:00
CI: add discussion category to IRC notification
This commit is contained in:
parent
02e85b8298
commit
aaf60b3520
1 changed files with 20 additions and 2 deletions
22
.github/workflows/irc.yml
vendored
22
.github/workflows/irc.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened, closed, reopened]
|
types: [opened, closed, reopened]
|
||||||
discussion:
|
discussion:
|
||||||
types: [created]
|
types: [created, closed, deleted]
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master_disabled'
|
- 'master_disabled'
|
||||||
|
|
@ -60,7 +60,25 @@ jobs:
|
||||||
channel: "#labwc"
|
channel: "#labwc"
|
||||||
nickname: "labwc"
|
nickname: "labwc"
|
||||||
notice: true
|
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
|
- name: irc pull request opened
|
||||||
uses: rectalogic/notify-irc@v1
|
uses: rectalogic/notify-irc@v1
|
||||||
if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue