// githubRelease returns a Release.
githubRelease returns a Release.
// githubRelease returns a Release .
func githubRelease(r *github.RepositoryRelease) *update.Release {
	out := &update.Release{
		Version:     r.GetTagName(),
		Notes:       r.GetBody(),
		PublishedAt: r.GetPublishedAt().Time,
		URL:         r.GetURL(),
	}
	for _, a := range r.Assets {
		out.Assets = append(out.Assets, &update.Asset{
			Name:      a.GetName(),
			Size:      a.GetSize(),
			URL:       a.GetBrowserDownloadURL(),
			Downloads: a.GetDownloadCount(),
		})
	}
	return out
}
func githubRelease ( r * github . RepositoryRelease ) * update . Release { out := & update . Release { Version : r . GetTagName ( ) , Notes : r . GetBody ( ) , PublishedAt : r . GetPublishedAt ( ) . Time , URL : r . GetURL ( ) , } for _ , a := range r . Assets { out . Assets = append ( out . Assets , & update . Asset { Name : a . GetName ( ) , Size : a . GetSize ( ) , URL : a . GetBrowserDownloadURL ( ) , Downloads : a . GetDownloadCount ( ) , } ) } return out }
githubRelease returns a Release.
githubRelease returns a Release .