mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 04:31:52 +02:00
feat: update task status
This commit is contained in:
1 parent
a8f74d4ec8
commit
feab4b1601
11 files changed
+186
-42
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user