diff options
author | Anthony Fok <foka@debian.org> | 2017-06-21 13:17:50 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-21 21:37:53 +0200 |
commit | 58ce9213c003dbe692f1407a7f93c3e869b37f9a (patch) | |
tree | 4485b1186197c04fbbacc9b76a9f8bba35dbe6fe | |
parent | ae3039b6e81149db3ae037e45fb1fc8642354f1b (diff) |
releaser: Fix typo, change "relase" to "release"
-rw-r--r-- | releaser/releasenotes_writer.go | 10 | ||||
-rw-r--r-- | releaser/releaser.go | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go index d892eb7fa..bb057324a 100644 --- a/releaser/releasenotes_writer.go +++ b/releaser/releasenotes_writer.go @@ -39,7 +39,7 @@ const ( {{ if eq (len .All) 1 }} This is a bug-fix release with one important fix. {{ else }} -This is a bug-fix relase with a couple of important fixes. +This is a bug-fix release with a couple of important fixes. {{ end }} {{ else }} This release represents **{{ len .All }} contributions by {{ len $contribsPerAuthor }} contributors** to the main Hugo code base. @@ -185,16 +185,16 @@ func writeReleaseNotesToTmpFile(version string, infos gitInfos) (string, error) return f.Name(), nil } -func getRelaseNotesDocsTempDirAndName(version string) (string, string) { +func getReleaseNotesDocsTempDirAndName(version string) (string, string) { return hugoFilepath("temp"), fmt.Sprintf("%s-relnotes.md", version) } -func getRelaseNotesDocsTempFilename(version string) string { - return filepath.Join(getRelaseNotesDocsTempDirAndName(version)) +func getReleaseNotesDocsTempFilename(version string) string { + return filepath.Join(getReleaseNotesDocsTempDirAndName(version)) } func writeReleaseNotesToTemp(version string, infos gitInfos) (string, error) { - docsTempPath, name := getRelaseNotesDocsTempDirAndName(version) + docsTempPath, name := getReleaseNotesDocsTempDirAndName(version) os.Mkdir(docsTempPath, os.ModePerm) f, err := os.Create(filepath.Join(docsTempPath, name)) diff --git a/releaser/releaser.go b/releaser/releaser.go index 765767c39..0823cd04e 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -33,7 +33,7 @@ const commitPrefix = "releaser:" type ReleaseHandler struct { patch int - // If set, we do the relases in 3 steps: + // If set, we do the releases in 3 steps: // 1: Create and write a draft release notes // 2: Prepare files for new version. // 3: Release @@ -167,7 +167,7 @@ func (r *ReleaseHandler) Run() error { return nil } - releaseNotesFile := getRelaseNotesDocsTempFilename(version) + releaseNotesFile := getReleaseNotesDocsTempFilename(version) // Write the release notes to the docs site as well. docFile, err := writeReleaseNotesToDocs(version, releaseNotesFile) @@ -178,7 +178,7 @@ func (r *ReleaseHandler) Run() error { if _, err := git("-C", "docs", "add", docFile); err != nil { return err } - if _, err := git("-C", "docs", "commit", "-m", fmt.Sprintf("%s Add relase notes to /docs for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil { + if _, err := git("-C", "docs", "commit", "-m", fmt.Sprintf("%s Add release notes to /docs for release of %s\n\n[ci skip]", commitPrefix, newVersion)); err != nil { return err } |