mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-23 17:14:04 +09:00
fix: update run status
This commit is contained in:
@ -25,6 +25,7 @@ import (
|
||||
"code.gitea.io/gitea/modules/repository"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
|
||||
"github.com/nektos/act/pkg/jobparser"
|
||||
)
|
||||
@ -94,6 +95,7 @@ func notify(repo *repo_model.Repository, doer *user_model.User, payload, ref str
|
||||
Event: evt,
|
||||
EventPayload: payload,
|
||||
Status: bots_model.StatusWaiting,
|
||||
Started: timeutil.TimeStampNow(),
|
||||
}
|
||||
if len(run.Title) > 255 {
|
||||
run.Title = run.Title[:255]
|
||||
|
Reference in New Issue
Block a user