Catch branch creation errors for Flows
What does this MR do and why?
This change improves error handling in a service that creates Git branches for CI workloads. Previously, the code would crash with exceptions when branch creation failed. Now it returns proper error responses that can be handled gracefully by the calling code. The service also better tracks which branch was actually created and includes error logging for debugging purposes. Additionally, a small bug was fixed where code was trying to access data before checking if the operation was successful. Tests were added to verify the new error handling works correctly.
References
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #569877