Skip to content

Commit 9b4767b

Browse files
committed
github: switch irc notifications action
This one lets you customize whether the notification bot should join the channel first before announcing the news. If a channel doesn't have mode +n set, joining is not required to speak in it, and not doing so saves some join/part noise.
1 parent 05fb844 commit 9b4767b

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

.github/workflows/irc-notifications.yaml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ jobs:
9494
echo "SUMUP: $SUMUP"
9595
9696
- name: irc push
97-
uses: rectalogic/notify-irc@v2
97+
uses: mauke/notify-irc@v1
9898
if: github.event_name == 'push' && github.ref != 'refs/heads/blead'
9999
with:
100100
server: ${{ env.server }}
101101
port: ${{ env.port }}
102+
tls: true
103+
join: true
102104
channel: ${{ env.channel_noise }}
103105
nickname: Commit
104106
message: |-
@@ -107,11 +109,13 @@ jobs:
107109
${{ github.event.compare }}
108110
109111
- name: irc push to blead
110-
uses: rectalogic/notify-irc@v2
112+
uses: mauke/notify-irc@v1
111113
if: github.event_name == 'push' && github.ref == 'refs/heads/blead'
112114
with:
113115
server: ${{ env.server }}
114116
port: ${{ env.port }}
117+
tls: true
118+
join: true
115119
channel: ${{ env.channel_noise }}
116120
nickname: inBlead
117121
message: |-
@@ -156,55 +160,65 @@ jobs:
156160
echo "TITLE: $TITLE"
157161
158162
- name: irc opened pull request
159-
uses: rectalogic/notify-irc@v2
163+
uses: mauke/notify-irc@v1
160164
if: github.event_name == 'pull_request' && github.event.action == 'opened'
161165
with:
162166
server: ${{ env.server }}
163167
port: ${{ env.port }}
168+
tls: true
169+
join: true
164170
channel: ${{ env.channel_p5p }}
165171
nickname: Pull-Request
166172
message: |-
167173
${{ env.color_orange }}${{ github.actor }}${{ env.color_clear }} opened PR #${{ github.event.pull_request.number }}: ${{ env.TITLE }} - ${{ github.event.pull_request.html_url }}
168174
169175
- name: irc reopened pull request
170-
uses: rectalogic/notify-irc@v2
176+
uses: mauke/notify-irc@v1
171177
if: github.event_name == 'pull_request' && github.event.action == 'reopened'
172178
with:
173179
server: ${{ env.server }}
174180
port: ${{ env.port }}
181+
tls: true
182+
join: true
175183
channel: ${{ env.channel_p5p }}
176184
nickname: Pull-Request
177185
message: |-
178186
${{ env.color_orange }}${{ github.actor }}${{ env.color_clear }} reopened PR #${{ github.event.pull_request.number }}: ${{ env.TITLE }} - ${{ github.event.pull_request.html_url }}
179187
180188
- name: irc merged pull request
181-
uses: rectalogic/notify-irc@v2
189+
uses: mauke/notify-irc@v1
182190
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
183191
with:
184192
server: ${{ env.server }}
185193
port: ${{ env.port }}
194+
tls: true
195+
join: true
186196
channel: ${{ env.channel_p5p }}
187197
nickname: Pull-Request
188198
message: |-
189199
${{ env.color_orange }}${{ github.actor }}${{ env.color_clear }} merged PR #${{ github.event.pull_request.number }}: ${{ env.TITLE }} - ${{ github.event.pull_request.html_url }}
190200
191201
- name: irc closed pull request
192-
uses: rectalogic/notify-irc@v2
202+
uses: mauke/notify-irc@v1
193203
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == false
194204
with:
195205
server: ${{ env.server }}
196206
port: ${{ env.port }}
207+
tls: true
208+
join: true
197209
channel: ${{ env.channel_p5p }}
198210
nickname: Pull-Request
199211
message: |-
200212
${{ env.color_orange }}${{ github.actor }}${{ env.color_clear }} closed PR #${{ github.event.pull_request.number }}: ${{ env.TITLE }} - ${{ github.event.pull_request.html_url }}
201213
202214
- name: irc synchronize pull request
203-
uses: rectalogic/notify-irc@v2
215+
uses: mauke/notify-irc@v1
204216
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
205217
with:
206218
server: ${{ env.server }}
207219
port: ${{ env.port }}
220+
tls: true
221+
join: true
208222
channel: ${{ env.channel_noise }}
209223
nickname: Pull-Request
210224
message: |-
@@ -213,33 +227,39 @@ jobs:
213227
${{ github.event.pull_request.html_url }}
214228
215229
- name: irc opened issue
216-
uses: rectalogic/notify-irc@v2
230+
uses: mauke/notify-irc@v1
217231
if: github.event_name == 'issues' && github.event.action == 'opened'
218232
with:
219233
server: ${{ env.server }}
220234
port: ${{ env.port }}
235+
tls: true
236+
join: true
221237
channel: ${{ env.channel_p5p }}
222238
nickname: GH-Issue
223239
message: |-
224240
${{ env.color_orange }}${{ github.actor }}${{ env.color_clear }} opened issue #${{ github.event.issue.number }}: ${{ env.TITLE }} - ${{ github.event.issue.html_url }}
225241
226242
- name: irc reopened issue
227-
uses: rectalogic/notify-irc@v2
243+
uses: mauke/notify-irc@v1
228244
if: github.event_name == 'issues' && github.event.action == 'reopened'
229245
with:
230246
server: ${{ env.server }}
231247
port: ${{ env.port }}
248+
tls: true
249+
join: true
232250
channel: ${{ env.channel_p5p }}
233251
nickname: GH-Issue
234252
message: |-
235253
${{ env.color_orange }}${{ github.actor }}${{ env.color_clear }} reopened issue #${{ github.event.issue.number }}: ${{ env.TITLE }} - ${{ github.event.issue.html_url }}
236254
237255
- name: irc closed issue
238-
uses: rectalogic/notify-irc@v2
256+
uses: mauke/notify-irc@v1
239257
if: github.event_name == 'issues' && github.event.action == 'closed'
240258
with:
241259
server: ${{ env.server }}
242260
port: ${{ env.port }}
261+
tls: true
262+
join: true
243263
channel: ${{ env.channel_p5p }}
244264
nickname: GH-Issue
245265
message: |-

0 commit comments

Comments
 (0)