Skip to content

Commit

Permalink
Update services/actions/commit_status.go
Browse files Browse the repository at this point in the history
Co-authored-by: delvh <dev.lh@web.de>
  • Loading branch information
wolfogre and delvh authored Mar 4, 2023
1 parent 3222b78 commit b8ca75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/actions/commit_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ func CreateCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) er
// Since the payload comes from json data, we should check if it's broken, or it will cause panic
switch {
case payload.Repo == nil:
return fmt.Errorf("miss Repo in event payload")
return fmt.Errorf("repo is missing in event payload")
case payload.Pusher == nil:
return fmt.Errorf("miss Pusher in event payload")
return fmt.Errorf("pusher is missing in event payload")
case payload.HeadCommit == nil:
return fmt.Errorf("miss HeadCommit in event payload")
return fmt.Errorf("head commit is missing in event payload")
}

creator, err := user_model.GetUserByID(ctx, payload.Pusher.ID)
Expand Down

0 comments on commit b8ca75b

Please sign in to comment.