From ce77fc643b6bb907f482cf0948070caf88d5f071 Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Wed, 23 Jul 2014 09:49:12 +0200 Subject: [PATCH] Add new fields to ReleaseAsset struct - BrowserDownloadUrl - Uploader See https://developer.github.com/v3/repos/releases/#upload-a-release-asset --- github/repos_releases.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/github/repos_releases.go b/github/repos_releases.go index f3574d1..3069b7a 100644 --- a/github/repos_releases.go +++ b/github/repos_releases.go @@ -36,16 +36,18 @@ func (r RepositoryRelease) String() string { // ReleaseAsset represents a Github release asset in a repository. type ReleaseAsset struct { - ID *int `json:"id,omitempty"` - URL *string `json:"url,omitempty"` - Name *string `json:"name,omitempty"` - Label *string `json:"label,omitempty"` - State *string `json:"state,omitempty"` - ContentType *string `json:"content_type,omitempty"` - Size *int `json:"size,omitempty"` - DownloadCount *int `json:"download_count,omitempty"` - CreatedAt *Timestamp `json:"created_at,omitempty"` - UpdatedAt *Timestamp `json:"updated_at,omitempty"` + ID *int `json:"id,omitempty"` + URL *string `json:"url,omitempty"` + Name *string `json:"name,omitempty"` + Label *string `json:"label,omitempty"` + State *string `json:"state,omitempty"` + ContentType *string `json:"content_type,omitempty"` + Size *int `json:"size,omitempty"` + DownloadCount *int `json:"download_count,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` + BrowserDownloadUrl *string `json:"browser_download_url,omitempty"` + Uploader *User `json:"uploader,omitempty"` } func (r ReleaseAsset) String() string {