diff options
author | Nicolas R <nicolas@atoomic.org> | 2022-12-20 16:08:46 -0700 |
---|---|---|
committer | ℕicolas ℝ <nicolas@atoomic.org> | 2022-12-20 17:13:41 -0700 |
commit | c135df2ed65f845408faf3ef7e20b4af5c506b47 (patch) | |
tree | 132e6a3b03574e66c74d63ac25543adeb9658116 /.github | |
parent | 93941afa8a74e29d8c01a68899f3a81a641d8709 (diff) | |
download | perl-c135df2ed65f845408faf3ef7e20b4af5c506b47.tar.gz |
irc-notifications: advertise merged and closed PRs
Split merged and closed PR notifications
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/irc-notifications.yaml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/irc-notifications.yaml b/.github/workflows/irc-notifications.yaml index 5de831f363..21dd4876aa 100644 --- a/.github/workflows/irc-notifications.yaml +++ b/.github/workflows/irc-notifications.yaml @@ -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 }}" |