diff options
author | Nicolas R <nicolas@atoomic.org> | 2020-09-01 15:15:29 -0600 |
---|---|---|
committer | Nicolas R <nicolas@atoomic.org> | 2020-09-01 15:27:07 -0600 |
commit | 90f5f043dc57f499b5e40f0225631b61c046a082 (patch) | |
tree | d7ba0e9e7daff9e1de210d29c615784c72fc09d3 /.github/workflows | |
parent | eb992c6fe3eb695f0f4836b9844ec01616381441 (diff) | |
download | perl-90f5f043dc57f499b5e40f0225631b61c046a082.tar.gz |
IRC notifications for opened and synchronize PR
This is using a different wording for opened
or synchronize pull requests.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/irc-notifications.yaml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/.github/workflows/irc-notifications.yaml b/.github/workflows/irc-notifications.yaml index 2500ede94f..83e61c24f1 100644 --- a/.github/workflows/irc-notifications.yaml +++ b/.github/workflows/irc-notifications.yaml @@ -56,19 +56,33 @@ jobs: ${{ join(github.event.commits.*.message, '\n') }}\n\ ${{ github.event.compare }}" - - name: irc pull request + - name: irc opened pull request uses: rectalogic/notify-irc@v1 - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.event.action == 'opened' with: server: ${{ env.server }} port: ${{ env.port }} channel: ${{ env.channel }} nickname: Pull-Request message: - "\x037${{ github.actor }}\x0F opened/updated PR #${{ github.event.pull_request.number }}\n\ + "\x037${{ github.actor }}\x0F opened PR #${{ github.event.pull_request.number }}\n\ ${{ github.event.pull_request.title }}\n\ ${{ github.event.pull_request.body }}\n\ - \x0313${{ github.event.pull_request.html.href }}\x0F" + ${{ github.event.pull_request.html_url }}" + + - name: irc synchronize pull request + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'pull_request' && github.event.action == 'synchronize' + with: + server: ${{ env.server }} + port: ${{ env.port }} + channel: ${{ env.channel }} + nickname: Pull-Request + message: + "\x037${{ github.actor }}\x0F updated PR #${{ github.event.pull_request.number }}\n\ + ${{ github.event.pull_request.title }}\n\ + ${{ github.event.pull_request.html_url }}" + # steps: # - name: Pull request merged # if: github.action == 'closed' && github.pull_request.merged == 'true' |