1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-10 08:18:12 +00:00

fix: use webhook_module

This commit is contained in:
Jason Song
2023-01-06 20:46:36 +08:00
parent 4c65c1d8b0
commit 21db670907
5 changed files with 36 additions and 36 deletions

View File

@@ -11,8 +11,8 @@ import (
"code.gitea.io/gitea/models/db"
git_model "code.gitea.io/gitea/models/git"
user_model "code.gitea.io/gitea/models/user"
webhook_model "code.gitea.io/gitea/models/webhook"
api "code.gitea.io/gitea/modules/structs"
webhook_module "code.gitea.io/gitea/modules/webhook"
)
func CreateCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) error {
@@ -21,7 +21,7 @@ func CreateCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) er
}
run := job.Run
if run.Event != webhook_model.HookEventPush {
if run.Event != webhook_module.HookEventPush {
return nil
}