Fix Deployment::StatusUpdateError when transitioning status with empty commit SHA
Summary
A Deployment::StatusUpdateError is occurring in production when attempting to transition a deployment status from :created to :succeed via the API endpoint /api/v4/projects/:id/deployments.
Error Details
Link to the error on Sentry.
Deployment::StatusUpdateError
/api/v4/projects/:id/deployments
Cannot transition status via :succeed from :created (Reason(s): Sha The commit does not exist) (Deployment::StatusUpdateError)
Edited by 🤖 GitLab Bot 🤖