Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

gem 'github'
gem 'github_api'
gem 'dotenv'
43 changes: 26 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.2.8)
addressable (2.4.0)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
dotenv (2.1.0)
github (0.7.2)
highline (~> 1.6)
json_pure (~> 1.5.1)
launchy (~> 2.0.2)
text-format (= 1.0.0)
text-hyphen (= 1.0.0)
highline (1.7.8)
json_pure (1.5.5)
spruz (~> 0.2.8)
launchy (2.0.5)
addressable (~> 2.2.6)
spruz (0.2.13)
text-format (1.0.0)
text-hyphen (~> 1.0.0)
text-hyphen (1.0.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
github_api (0.13.1)
addressable (~> 2.4.0)
descendants_tracker (~> 0.0.4)
faraday (~> 0.8, < 0.10)
hashie (>= 3.4)
multi_json (>= 1.7.5, < 2.0)
oauth2
hashie (3.4.3)
jwt (1.5.1)
multi_json (1.11.2)
multi_xml (0.5.5)
multipart-post (2.0.0)
oauth2 (1.1.0)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0, < 1.5.2)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
rack (1.6.4)
thread_safe (0.3.5)

PLATFORMS
ruby

DEPENDENCIES
dotenv
github
github_api

BUNDLED WITH
1.10.6
18 changes: 17 additions & 1 deletion main.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
require 'dotenv'
require 'github'
require 'github_api'

Dotenv.load

puts "Hello, World."

# $Github = Github.new

def list_pulls
github = Github.new user: 'peter-murach', repo: 'github'

github.repos.comments.list do |com|
puts com.body
end

# # Lists comments on PRs not yet merged in to the Repo, or from external repos
# github.pull_requests.comments.list do |com|
# puts com.body
# end
end

list_pulls