mirror of
https://github.com/go-gitea/gitea
synced 2025-08-09 11:08:19 +00:00
Rename HookQueue to hookQueue (#8778)
* Rename HookQueue to hookQueue * fix lint
This commit is contained in:
@@ -137,7 +137,7 @@ func TestHook(ctx *context.APIContext) {
|
||||
ctx.Error(500, "PrepareWebhook: ", err)
|
||||
return
|
||||
}
|
||||
go webhook.HookQueue.Add(ctx.Repo.Repository.ID)
|
||||
|
||||
ctx.Status(204)
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,6 @@ import (
|
||||
"code.gitea.io/gitea/modules/notification"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
"code.gitea.io/gitea/modules/util"
|
||||
"code.gitea.io/gitea/modules/webhook"
|
||||
"code.gitea.io/gitea/services/gitdiff"
|
||||
pull_service "code.gitea.io/gitea/services/pull"
|
||||
repo_service "code.gitea.io/gitea/services/repository"
|
||||
@@ -824,7 +823,6 @@ func TriggerTask(ctx *context.Context) {
|
||||
|
||||
log.Trace("TriggerTask '%s/%s' by %s", repo.Name, branch, pusher.Name)
|
||||
|
||||
go webhook.HookQueue.Add(repo.ID)
|
||||
go pull_service.AddTestPullRequestTask(pusher, repo.ID, branch, true)
|
||||
ctx.Status(202)
|
||||
}
|
||||
|
@@ -869,7 +869,6 @@ func TestWebhook(ctx *context.Context) {
|
||||
ctx.Flash.Error("PrepareWebhook: " + err.Error())
|
||||
ctx.Status(500)
|
||||
} else {
|
||||
go webhook.HookQueue.Add(ctx.Repo.Repository.ID)
|
||||
ctx.Flash.Info(ctx.Tr("repo.settings.webhook.test_delivery_success"))
|
||||
ctx.Status(200)
|
||||
}
|
||||
|
Reference in New Issue
Block a user