Skip to content

Prevent blank lines being sent to IRC #2

@reedy

Description

@reedy

Hello!

Looking for a bit of help wrt fixing wikimedia/composer-merge-plugin#201

Using this config:

    - name: irc push
      uses: rectalogic/notify-irc@v1
      if: github.event_name == 'push'
      with:
        channel: "#wikimedia-dev"
        nickname: wikimedia-github
        message: |
          ${{ github.repository }}#${{ github.run_id }} (${{ github.base_ref }} - ${{ github.sha }} ${{ github.actor }}): ${{ join(github.event.commits.*.message) }} - https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

Results in the bot joining, sending the desired line, then sending a line with just a trailing space, then quitting...

[19:39:19] --> wikimedia-github (~wikimedia@40.70.200.114) has joined #wikimedia-dev
[19:39:19] <wikimedia-github> wikimedia/composer-merge-plugin#476090360 ( - 6415d88441c6873cb1f6dc5c199a8e638fe23752 reedy): Migrate to GitHub Actions - https://github.com/wikimedia/composer-merge-plugin/actions/runs/476090360
[19:39:19] <wikimedia-github>  
[19:39:19] <-- wikimedia-github (~wikimedia@40.70.200.114) has left #wikimedia-dev

How do I prevent/stop that blank line being sent?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions