Skip to content

Instantly share code, notes, and snippets.

@tosik
Created May 23, 2013 05:19
Show Gist options
  • Select an option

  • Save tosik/5632905 to your computer and use it in GitHub Desktop.

Select an option

Save tosik/5632905 to your computer and use it in GitHub Desktop.
なぜか動かない jq がパイプしてくれないっぽい?
ssh gerrit.example.com -p 29418 gerrit stream-events | jq '.|select(.type == "comment-added")|{comment, url: .change.url}|.[]' --raw-output | ruby -e "require 'carrier-pigeon'; loop { message = STDIN.gets; if message then CarrierPigeon.send(uri: 'irc://gerrit:[email protected]/#gerrit', message: message, ssl:true, notice:true, join:true) ; p message ;end }"
@tosik
Copy link
Author

tosik commented May 23, 2013

gerrit のコメント投稿を IRC に流すツール

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment