feat: update task status

This commit is contained in:
Jason Song committed 2022-11-25 17:48:45 +08:00
1 parent a8f74d4ec8
commit feab4b1601
11 files changed
+186 -42

No files matched your search

+1 -2
View File
@@ -9,7 +9,6 @@ import (
"encoding/json"
"fmt"
"code.gitea.io/gitea/core"
bots_model "code.gitea.io/gitea/models/bots"
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/perm"
@@ -94,7 +93,7 @@ func notify(repo *repo_model.Repository, doer *user_model.User, payload, ref str
CommitSHA: commit.ID.String(),
Event: evt,
EventPayload: payload,
Status: core.StatusPending,
Status: bots_model.StatusWaiting,
}
if len(run.Title) > 255 {
run.Title = run.Title[:255]