mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
releaser: Remove unused code
This commit is contained in:
parent
e86b331138
commit
bf537f1c6d
2 changed files with 0 additions and 23 deletions
|
@ -25,14 +25,6 @@ import (
|
||||||
|
|
||||||
var issueRe = regexp.MustCompile(`(?i)(?:Updates?|Closes?|Fix.*|See) #(\d+)`)
|
var issueRe = regexp.MustCompile(`(?i)(?:Updates?|Closes?|Fix.*|See) #(\d+)`)
|
||||||
|
|
||||||
const (
|
|
||||||
notesChanges = "notesChanges"
|
|
||||||
templateChanges = "templateChanges"
|
|
||||||
coreChanges = "coreChanges"
|
|
||||||
outChanges = "outChanges"
|
|
||||||
otherChanges = "otherChanges"
|
|
||||||
)
|
|
||||||
|
|
||||||
type changeLog struct {
|
type changeLog struct {
|
||||||
Version string
|
Version string
|
||||||
Notes gitInfos
|
Notes gitInfos
|
||||||
|
|
|
@ -163,21 +163,6 @@ func fetchThemeCount() (int, error) {
|
||||||
return bytes.Count(b, []byte("\n")) - bytes.Count(b, []byte("#")), nil
|
return bytes.Count(b, []byte("\n")) - bytes.Count(b, []byte("#")), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeReleaseNotesToTmpFile(version string, infosMain, infosDocs gitInfos) (string, error) {
|
|
||||||
f, err := ioutil.TempFile("", "hugorelease")
|
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
defer f.Close()
|
|
||||||
|
|
||||||
if err := writeReleaseNotes(version, infosMain, infosDocs, f); err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
return f.Name(), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func getReleaseNotesDocsTempDirAndName(version string, final bool) (string, string) {
|
func getReleaseNotesDocsTempDirAndName(version string, final bool) (string, string) {
|
||||||
if final {
|
if final {
|
||||||
return hugoFilepath("temp"), fmt.Sprintf("%s-relnotes-ready.md", version)
|
return hugoFilepath("temp"), fmt.Sprintf("%s-relnotes-ready.md", version)
|
||||||
|
|
Loading…
Reference in a new issue