Sha256: c151e3c209ac7b1c4ceddc2acab5c3932859fcf185a6fa16019438f59682b8ae
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
require 'json' require 'rest-client' add_pane do |pane| pane.height = 0.5 pane.width = 0.5 pane.top = 0 pane.left = 0 pane.highlight = true pane.title = "Open PRs - fastlane/fastlane" pane.interval = 60 * 5 pane.content do resp = RestClient.get "https://api.github.com/repos/fastlane/fastlane/pulls" json = JSON.parse(resp) json.map do |pr| display = "##{pr["number"]} #{pr["title"]}" # First element is displayed # Second element is passed to pane.selection [display, pr["html_url"]] end end pane.selection do |url| `open #{url}` end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wassup-0.2.1 | examples/basic/Supfile |
wassup-0.2.0 | examples/basic/Supfile |
wassup-0.1.2 | examples/basic/Supfile |