Fix error when trying to access nil commit author (via GraphQL)
What does this MR do and why?
Fixes a bug caused by commits with nil emails
Related to #337243 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Push a commit with a nil e-mail:
git commit --author "Snail Mail <>" - Run the following GraphQL query:
query { mergeRequest(id: "gid://gitlab/MergeRequest/xxx") { commits { nodes { committerEmail author { id username } } } } }
Edited by Lee Tickett

