Skip to content

Commit 7490696

Browse files
committed
Notification to pythonpune irc
1 parent 58fd176 commit 7490696

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/newsletter-issue.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Every month create newsletter issue.
2+
13
name: Newsletter Issue
24

35
on:
@@ -27,8 +29,8 @@ jobs:
2729
- name: IRC notification
2830
uses: Gottox/irc-message-action@v1
2931
with:
30-
channel: '#pythonpune'
31-
nickname: pypune_gh_${{ github.run_id }}
32+
channel: ${{ secrets.channel }}
33+
nickname: newsletter_${{ github.run_id }}
3234
message: |-
3335
${{ steps.event.outputs.edition }} PythonPune newsletter collection box issue created.
3436
Please feel free to contribute ${{ steps.newsletter-issue.outputs.url }}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Send GitHub notifications to `pythonpune` IRC channel.
2+
3+
name: Notifications
4+
5+
on:
6+
issue_comment:
7+
types: [created]
8+
issues:
9+
types: [opened]
10+
11+
jobs:
12+
talk-proposal:
13+
# run only when issue open with label `talk-proposal`.
14+
if: github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'talk-proposal')
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: talk-proposal link
18+
run: echo ${{ github.event.issue.html_url }}
19+
- name: IRC notification
20+
uses: Gottox/irc-message-action@v1
21+
with:
22+
channel: ${{ secrets.channel }}
23+
nickname: talk_proposal_${{ github.run_id }}
24+
message: |-
25+
Talk-Proposal: ${{ github.event.issue.title }}
26+
${{ github.event.issue.html_url }}
27+
28+
newsletter-comment:
29+
# run only when comment on issue with label `newsletter`.
30+
if: github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'newsletter')
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: comment
34+
run: echo "${{ github.event.comment.body }}"
35+
- name: IRC notification
36+
uses: Gottox/irc-message-action@v1
37+
with:
38+
channel: ${{ secrets.channel }}
39+
nickname: newsletter_${{ github.run_id }}
40+
message: ${{ github.event.comment.body }}

0 commit comments

Comments
 (0)