Skip to content

Commit

Permalink
Fix run list broken when trigger user deleted (#24706)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored May 14, 2023
1 parent 11552a7 commit a8f643c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/actions/run_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func (runs RunList) LoadTriggerUser(ctx context.Context) error {
run.TriggerUser = user_model.NewActionsUser()
} else {
run.TriggerUser = users[run.TriggerUserID]
if run.TriggerUser == nil {
run.TriggerUser = user_model.NewGhostUser()
}
}
}
return nil
Expand Down

0 comments on commit a8f643c

Please sign in to comment.