mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-30 20:42:54 +09:00
build UI
This commit is contained in:
@ -86,7 +86,7 @@ func notify(repo *repo_model.Repository, doer *user_model.User, payload, ref str
|
||||
|
||||
for id, content := range workflows {
|
||||
run := bots_model.Run{
|
||||
Name: commit.Message(),
|
||||
Title: commit.Message(),
|
||||
RepoID: repo.ID,
|
||||
WorkflowID: id,
|
||||
TriggerUserID: doer.ID,
|
||||
@ -96,6 +96,9 @@ func notify(repo *repo_model.Repository, doer *user_model.User, payload, ref str
|
||||
EventPayload: payload,
|
||||
Status: core.StatusPending,
|
||||
}
|
||||
if len(run.Title) > 255 {
|
||||
run.Title = run.Title[:255]
|
||||
}
|
||||
jobs, err := jobparser.Parse(content) // TODO: parse with options
|
||||
if err != nil {
|
||||
log.Error("jobparser.Parse: %v", err)
|
||||
|
Reference in New Issue
Block a user