From 17225f1b849c58d2f2035b5d47e9e22d71838a0f Mon Sep 17 00:00:00 2001 From: Michael Tiller Date: Tue, 28 Apr 2015 11:45:21 -0400 Subject: [PATCH] Fixes json mapping for git_url and html_url The issue is that the JSON tags on the contents struct were wrong. They were missing the underscore. --- github/repos_contents.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/repos_contents.go b/github/repos_contents.go index d17c63e..cd6d371 100644 --- a/github/repos_contents.go +++ b/github/repos_contents.go @@ -27,8 +27,8 @@ type RepositoryContent struct { Content *string `json:"content,omitempty"` SHA *string `json:"sha,omitempty"` URL *string `json:"url,omitempty"` - GitURL *string `json:"giturl,omitempty"` - HTMLURL *string `json:"htmlurl,omitempty"` + GitURL *string `json:"git_url,omitempty"` + HTMLURL *string `json:"html_url,omitempty"` } // RepositoryContentResponse holds the parsed response from CreateFile, UpdateFile, and DeleteFile.