Validate the SHA and branch name of a deployment before creating it
In #36964 (moved) / gitlab-com/gl-infra/delivery#568 (closed) we ran into an issue where a deployment SHA was set to "ee" incorrectly. We should add a validation rule to the Deployment
model that ensures that the sha
value points to an existing commit. We should do the same for the branch name.