hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ccd32854845030179dd74293b8c518c6a7e3f39c
parent 600047ff1cb95d061af1983b9a755157eb4941f8
Author: Cameron Moore <moorereason@gmail.com>
Date:   Thu,  6 Sep 2018 14:50:54 -0500

releaser: Fix golint issues

struct field HtmlURL should be HTMLURL

Diffstat:
Mreleaser/git.go | 4++--
Mreleaser/github.go | 8++++----
Mreleaser/releasenotes_writer.go | 6+++---
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/releaser/git.go b/releaser/git.go
@@ -167,8 +167,8 @@ type countribCount struct {
 }
 
 func (c countribCount) AuthorLink() string {
-	if c.GitHubAuthor.HtmlURL != "" {
-		return fmt.Sprintf("[@%s](%s)", c.GitHubAuthor.Login, c.GitHubAuthor.HtmlURL)
+	if c.GitHubAuthor.HTMLURL != "" {
+		return fmt.Sprintf("[@%s](%s)", c.GitHubAuthor.Login, c.GitHubAuthor.HTMLURL)
 	}
 
 	if !strings.Contains(c.Author, "@") {
diff --git a/releaser/github.go b/releaser/github.go
@@ -31,13 +31,13 @@ func newGitHubAPI(repo string) *gitHubAPI {
 
 type gitHubCommit struct {
 	Author  gitHubAuthor `json:"author"`
-	HtmlURL string       `json:"html_url"`
+	HTMLURL string       `json:"html_url"`
 }
 
 type gitHubAuthor struct {
 	ID        int    `json:"id"`
 	Login     string `json:"login"`
-	HtmlURL   string `json:"html_url"`
+	HTMLURL   string `json:"html_url"`
 	AvatarURL string `json:"avatar_url"`
 }
 
@@ -45,7 +45,7 @@ type gitHubRepo struct {
 	ID           int    `json:"id"`
 	Name         string `json:"name"`
 	Description  string `json:"description"`
-	HtmlURL      string `json:"html_url"`
+	HTMLURL      string `json:"html_url"`
 	Stars        int    `json:"stargazers_count"`
 	Contributors []gitHubContributor
 }
@@ -53,7 +53,7 @@ type gitHubRepo struct {
 type gitHubContributor struct {
 	ID            int    `json:"id"`
 	Login         string `json:"login"`
-	HtmlURL       string `json:"html_url"`
+	HTMLURL       string `json:"html_url"`
 	Contributions int    `json:"contributions"`
 }
 
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
@@ -125,16 +125,16 @@ var templateFuncs = template.FuncMap{
 		return fmt.Sprintf(issueLinkTemplate, id, id)
 	},
 	"commitURL": func(info gitInfo) string {
-		if info.GitHubCommit.HtmlURL == "" {
+		if info.GitHubCommit.HTMLURL == "" {
 			return ""
 		}
-		return fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HtmlURL)
+		return fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HTMLURL)
 	},
 	"authorURL": func(info gitInfo) string {
 		if info.GitHubCommit.Author.Login == "" {
 			return ""
 		}
-		return fmt.Sprintf(linkTemplate, "@"+info.GitHubCommit.Author.Login, info.GitHubCommit.Author.HtmlURL)
+		return fmt.Sprintf(linkTemplate, "@"+info.GitHubCommit.Author.Login, info.GitHubCommit.Author.HTMLURL)
 	},
 }