Skip to content

Commit

Permalink
added Body_html export from Github API
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Bock committed Nov 23, 2018
1 parent 35781f7 commit 4c3793e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const (
headerRateReset = "X-RateLimit-Reset"
headerOTP = "X-GitHub-OTP"

mediaTypeV3 = "application/vnd.github.v3+json"
mediaTypeV3 = "application/vnd.github.full+json"
defaultMediaType = "application/octet-stream"
mediaTypeV3SHA = "application/vnd.github.v3.sha"
mediaTypeV3Diff = "application/vnd.github.v3.diff"
Expand Down
2 changes: 2 additions & 0 deletions github/repos_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type RepositoryRelease struct {
TarballURL *string `json:"tarball_url,omitempty"`
Author *User `json:"author,omitempty"`
NodeID *string `json:"node_id,omitempty"`
BodyHTML *string `json:"body_html,omitempty"`
}

func (r RepositoryRelease) String() string {
Expand Down Expand Up @@ -115,6 +116,7 @@ func (s *RepositoriesService) GetReleaseByTag(ctx context.Context, owner, repo,

func (s *RepositoriesService) getSingleRelease(ctx context.Context, url string) (*RepositoryRelease, *Response, error) {
req, err := s.client.NewRequest("GET", url, nil)

if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 4c3793e

Please sign in to comment.