Copyright and wording
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
e786336910
commit
1c9433dda1
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
@ -11,7 +15,11 @@ import (
|
|||
const (
|
||||
exampleFile = "changelog.example.yml"
|
||||
writeFile = "config/config_default.go"
|
||||
tmpl = `package config
|
||||
tmpl = `// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package config
|
||||
|
||||
func init() {
|
||||
defaultConfig = []byte(` + "`" + `%s` + "`" + `)
|
||||
|
|
|
@ -15,10 +15,9 @@ import (
|
|||
)
|
||||
|
||||
var Contributors = &cli.Command{
|
||||
Name: "contributors",
|
||||
Usage: "generate contributors list",
|
||||
Description: "generate contributors list",
|
||||
Action: runContributors,
|
||||
Name: "contributors",
|
||||
Usage: "Generates a contributors list",
|
||||
Action: runContributors,
|
||||
}
|
||||
|
||||
func runContributors(cmd *cli.Context) error {
|
||||
|
|
|
@ -14,10 +14,9 @@ import (
|
|||
)
|
||||
|
||||
var Generate = &cli.Command{
|
||||
Name: "generate",
|
||||
Usage: "generate changelog",
|
||||
Description: "generate changelog",
|
||||
Action: runGenerate,
|
||||
Name: "generate",
|
||||
Usage: "Generates a changelog",
|
||||
Action: runGenerate,
|
||||
}
|
||||
|
||||
func runGenerate(cmd *cli.Context) error {
|
||||
|
|
|
@ -31,7 +31,6 @@ func (ge *Gitea) Generate() (string, []PullRequest, error) {
|
|||
return "", nil, err
|
||||
}
|
||||
|
||||
|
||||
tagURL := fmt.Sprintf("## [%s](%s/%s/%s/pulls?q=&type=all&state=closed&milestone=%d) - %s", ge.Milestone, ge.BaseURL, ge.Owner, ge.Repo, milestoneID, time.Now().Format("2006-01-02"))
|
||||
|
||||
p := 1
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package service
|
||||
|
||||
import "testing"
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package service
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue