Browse Source

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.
Michael Tiller 11 years ago
committed by Will Norris
parent
commit
17225f1b84
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      github/repos_contents.go

+ 2
- 2
github/repos_contents.go View File

@ -27,8 +27,8 @@ type RepositoryContent struct {
Content *string `json:"content,omitempty"` Content *string `json:"content,omitempty"`
SHA *string `json:"sha,omitempty"` SHA *string `json:"sha,omitempty"`
URL *string `json:"url,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. // RepositoryContentResponse holds the parsed response from CreateFile, UpdateFile, and DeleteFile.


Loading…
Cancel
Save