Skip to content

Instantly share code, notes, and snippets.

@StephenOTT
Created December 16, 2013 22:53
Show Gist options
  • Save StephenOTT/7996071 to your computer and use it in GitHub Desktop.
Save StephenOTT/7996071 to your computer and use it in GitHub Desktop.
Code sample showing GitHub API issue with the Code Commits Octokit.rb Octokit.commits() returned date fields
require 'octokit'
commits = Octokit.commits("StephenOTT/Test1")
commitComments = Octokit.commit_comments("StephenOTT/Test1", "b08156d2327b47c5bfb2543b224cd6aee726add5")
commits.each do |x|
puts x.attrs[:commit].attrs[:author].attrs[:date]
end
puts "*********"
commitComments.each do |y|
puts y.attrs[:created_at]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment