Remove timestamp from sig file generation

This commit is contained in:
Christoph Blecker 2017-06-22 09:54:27 -07:00
parent 95e1d4b612
commit 91d1bd408e
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
1 changed files with 0 additions and 10 deletions

View File

@ -25,7 +25,6 @@ import (
"sort"
"strings"
"text/template"
"time"
"gopkg.in/yaml.v2"
)
@ -42,7 +41,6 @@ var (
githubTeamNames = []string{"misc", "test-failures", "bugs", "feature-requests", "proposals", "pr-reviews", "api-reviews"}
beginMarker = "<!-- BEGIN CUSTOM CONTENT -->"
endMarker = "<!-- END CUSTOM CONTENT -->"
lastGeneratedPrefix = "Last generated: "
)
type Lead struct {
@ -204,9 +202,6 @@ func writeTemplate(templatePath, outputPath string, data interface{}) error {
// custom content block
writeCustomContentBlock(f, content)
// last generated
writeLastGenerated(f)
fmt.Printf("Generated %s\n", outputPath)
return nil
}
@ -218,11 +213,6 @@ func writeCustomContentBlock(f *os.File, content string) {
}
}
func writeLastGenerated(f *os.File) {
lastGenerated := fmt.Sprintf("\n%s %s", lastGeneratedPrefix, time.Now().Format("Mon Jan 2 2006 15:04:05"))
f.Write([]byte(lastGenerated))
}
func createReadmeFiles(ctx Context) error {
var selectedSig *string
if sig, ok := os.LookupEnv("SIG"); ok {