Skip to content

Commit

Permalink
irc-notifications: advertise merged and closed PRs
Browse files Browse the repository at this point in the history
Split merged and closed PR notifications
  • Loading branch information
atoomic committed Dec 21, 2022
1 parent 93941af commit c135df2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/irc-notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,29 @@ jobs:
${{ env.TITLE }}\n\
${{ github.event.pull_request.html_url }}"

- name: irc merged pull request
uses: rectalogic/notify-irc@v2
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
with:
server: ${{ env.server }}
port: ${{ env.port }}
channel: ${{ env.channel_p5p }}
nickname: Pull-Request
message:
"\x037${{ github.actor }}\x0F merged PR #${{ github.event.pull_request.number }}\n\
${{ env.TITLE }}\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'
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == false
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\
"\x037${{ github.actor }}\x0F closed PR #${{ github.event.pull_request.number }}\n\
${{ env.TITLE }}\n\
${{ github.event.pull_request.html_url }}"

Expand Down

0 comments on commit c135df2

Please sign in to comment.