Created
December 16, 2013 22:53
-
-
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
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
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