forked from gitea/gitea

Backport #10317 The commit status code has a bug whereby setting the initial status to Pending means you can never have the status of Success - it should be set to Success.
Backport #10317 The commit status code has a bug whereby setting the initial status to Pending means you can never have the status of Success - it should be set to Success.