diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-20 02:25:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 02:25:02 +0800 |
commit | 1c09373b4f7dbc68154c817b4ee44bfa3b3f637c (patch) | |
tree | aeec9a80d10f9ef28f0d0b128f8a84bf3cb5bdb1 /internal/route/repo/pull.go | |
parent | 422a20648466f270de195dce3bca04e977bacd13 (diff) |
log: migrate to unknwon.dev/clog/v2 (#5927)
* Add unknwon.dev/clog/v2
* Update all places
Diffstat (limited to 'internal/route/repo/pull.go')
-rw-r--r-- | internal/route/repo/pull.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/route/repo/pull.go b/internal/route/repo/pull.go index 38c04c7c..d2cb52cb 100644 --- a/internal/route/repo/pull.go +++ b/internal/route/repo/pull.go @@ -10,7 +10,7 @@ import ( "strings" "github.com/unknwon/com" - log "gopkg.in/clog.v1" + log "unknwon.dev/clog/v2" "github.com/gogs/git-module" @@ -28,7 +28,7 @@ const ( PULL_COMMITS = "repo/pulls/commits" PULL_FILES = "repo/pulls/files" - PULL_REQUEST_TEMPLATE_KEY = "PullRequestTemplate" + PULL_REQUEST_TEMPLATE_KEY = "PullRequestTemplate" PULL_REQUEST_TITLE_TEMPLATE_KEY = "PullRequestTitleTemplate" ) @@ -648,7 +648,7 @@ func CompareAndPullRequest(c *context.Context) { if c.Data[PULL_REQUEST_TITLE_TEMPLATE_KEY] != nil { customTitle := c.Data[PULL_REQUEST_TITLE_TEMPLATE_KEY].(string) - r := strings.NewReplacer("{{headBranch}}", headBranch,"{{baseBranch}}", baseBranch) + r := strings.NewReplacer("{{headBranch}}", headBranch, "{{baseBranch}}", baseBranch) c.Data["title"] = r.Replace(customTitle) } |