summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNicolas R <nicolas@atoomic.org>2022-12-20 15:51:24 -0700
committerℕicolas ℝ <nicolas@atoomic.org>2022-12-20 17:13:41 -0700
commit93941afa8a74e29d8c01a68899f3a81a641d8709 (patch)
treeaea500343b7179d3d4353ddc46fc4b1c00f910d7 /.github/workflows
parentef9ee31805bb5bc21534acf41c8c99e4a5aefcd2 (diff)
downloadperl-93941afa8a74e29d8c01a68899f3a81a641d8709.tar.gz
irc-notifications: split notifications
Split notifications between the two channels Advertise opened and closed Pull Requests to #p5p and use #p5p-commits for any extra notifications so we reduce noise to #p5p to its minimum. Remove body from opened PR and only use title.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/irc-notifications.yaml25
1 files changed, 19 insertions, 6 deletions
diff --git a/.github/workflows/irc-notifications.yaml b/.github/workflows/irc-notifications.yaml
index b8ca939b48..5de831f363 100644
--- a/.github/workflows/irc-notifications.yaml
+++ b/.github/workflows/irc-notifications.yaml
@@ -16,7 +16,8 @@ jobs:
env:
server: ssl.irc.perl.org
port: 7062
- channel: "#p5p-commits"
+ channel_p5p: "#p5p"
+ channel_noise: "#p5p-commits"
steps:
- name: Dump GitHub context
@@ -89,7 +90,7 @@ jobs:
with:
server: ${{ env.server }}
port: ${{ env.port }}
- channel: ${{ env.channel }}
+ channel: ${{ env.channel_noise }}
nickname: Commit
message:
"\x037${{ github.actor }}\x0F pushed to branch \x033${{ env.ref }}\x0F\n\
@@ -102,7 +103,7 @@ jobs:
with:
server: ${{ env.server }}
port: ${{ env.port }}
- channel: ${{ env.channel }}
+ channel: ${{ env.channel_noise }}
nickname: inBlead
message:
"\x0313[blead]\x0F \x037${{ github.actor }}\x0F pushed to blead\n\
@@ -151,12 +152,24 @@ jobs:
with:
server: ${{ env.server }}
port: ${{ env.port }}
- channel: ${{ env.channel }}
+ channel: ${{ env.channel_p5p }}
nickname: Pull-Request
message:
"\x037${{ github.actor }}\x0F opened PR #${{ github.event.pull_request.number }}\n\
${{ env.TITLE }}\n\
- ${{ env.BODY }}\n\
+ ${{ github.event.pull_request.html_url }}"
+
+ - name: irc closed pull request
+ uses: rectalogic/notify-irc@v2
+ if: github.event_name == 'pull_request' && github.event.action == 'closed'
+ with:
+ server: ${{ env.server }}
+ port: ${{ env.port }}
+ channel: ${{ env.channel_p5p }}
+ nickname: Pull-Request
+ message:
+ "\x037${{ github.actor }}\x0F close PR #${{ github.event.pull_request.number }}\n\
+ ${{ env.TITLE }}\n\
${{ github.event.pull_request.html_url }}"
- name: irc synchronize pull request
@@ -165,7 +178,7 @@ jobs:
with:
server: ${{ env.server }}
port: ${{ env.port }}
- channel: ${{ env.channel }}
+ channel: ${{ env.channel_noise }}
nickname: Pull-Request
message:
"\x037${{ github.actor }}\x0F updated PR #${{ github.event.pull_request.number }}\n\