Copyright and wording

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser 2020-01-22 22:08:35 -06:00
parent e786336910
commit 1c9433dda1
No known key found for this signature in database
GPG Key ID: B853ADA5DA7BBF7A
6 changed files with 23 additions and 10 deletions

View File

@ -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` + "`" + `)

View File

@ -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 {

View File

@ -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 {

View File

@ -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

View File

@ -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"

View File

@ -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 (