1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

chore(gRPC): support update stage and step method.

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-09-01 22:05:51 +08:00
committed by Jason Song
parent 68d416bd1b
commit eac6425b2f
4 changed files with 25 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ func notify(repo *repo_model.Repository, doer *user_model.User, payload, ref str
for i, entry := range matchedEntries {
taskStatuses := make(map[string]bots_model.BuildStatus)
for k := range jobs[i] {
taskStatuses[k] = bots_model.BuildPending
taskStatuses[k] = bots_model.StatusPending
}
workflowsStatuses[entry.Name()] = taskStatuses
}
@@ -98,7 +98,7 @@ func notify(repo *repo_model.Repository, doer *user_model.User, payload, ref str
TriggerUserID: doer.ID,
Event: evt,
EventPayload: payload,
Status: bots_model.BuildPending,
Status: bots_model.StatusPending,
Ref: ref,
CommitSHA: commit.ID.String(),
}