aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 987e703c..fc1a3817 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -16,17 +16,17 @@ import (
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/models/errors"
- "github.com/gogits/gogs/pkg/base"
+ "github.com/gogits/gogs/pkg/tool"
"github.com/gogits/gogs/pkg/context"
"github.com/gogits/gogs/pkg/form"
"github.com/gogits/gogs/pkg/setting"
)
const (
- FORK base.TplName = "repo/pulls/fork"
- COMPARE_PULL base.TplName = "repo/pulls/compare"
- PULL_COMMITS base.TplName = "repo/pulls/commits"
- PULL_FILES base.TplName = "repo/pulls/files"
+ FORK tool.TplName = "repo/pulls/fork"
+ COMPARE_PULL tool.TplName = "repo/pulls/compare"
+ PULL_COMMITS tool.TplName = "repo/pulls/commits"
+ PULL_FILES tool.TplName = "repo/pulls/files"
PULL_REQUEST_TEMPLATE_KEY = "PullRequestTemplate"
)
@@ -738,7 +738,7 @@ func TriggerTask(ctx *context.Context) {
if ctx.Written() {
return
}
- if secret != base.EncodeMD5(owner.Salt) {
+ if secret != tool.EncodeMD5(owner.Salt) {
ctx.Error(404)
log.Trace("TriggerTask [%s/%s]: invalid secret", owner.Name, repo.Name)
return