Created
May 23, 2013 05:19
-
-
Save tosik/5632905 to your computer and use it in GitHub Desktop.
なぜか動かない
jq がパイプしてくれないっぽい?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gerrit のコメント投稿を IRC に流すツール