mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
fix: commit status
This commit is contained in:
@@ -172,11 +172,8 @@ func (s *Service) UpdateTask(
|
||||
if err := task.LoadJob(ctx); err != nil {
|
||||
return nil, status.Errorf(codes.Internal, "load job: %v", err)
|
||||
}
|
||||
if err := task.Job.LoadAttributes(ctx); err != nil {
|
||||
return nil, status.Errorf(codes.Internal, "load run: %v", err)
|
||||
}
|
||||
|
||||
if err := bots_service.CreateCommitStatus(ctx, task); err != nil {
|
||||
if err := bots_service.CreateCommitStatus(ctx, task.Job); err != nil {
|
||||
log.Error("Update commit status failed: %v", err)
|
||||
// go on
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user