Use webhook_email for push webhook user_email
What does this MR do and why?
The push webhook builder read the raw public_email column directly, unlike every other webhook payload builder in this family. This meant users without a public email got an empty string, and project bots (which never have one) got null, instead of the documented [REDACTED] placeholder. Use webhook_email to match the existing convention and the documented behavior.
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
Setup
- Go to a project page.
- Go to Settings > Webhooks.
- Click Add new webhook.
- Set the URL to
https://example.com(or use a tool like webhook.site to inspect payloads). - Under Trigger, select Push events.
- Click Add webhook.
Validate the fix
- On the webhook list, click Test > Push events.
- Ignore the delivery failure (the URL is not real).
- Click Edit on the webhook, then open the Recent events tab.
- Expand the latest event and inspect the request payload.
Expected behavior
- If the push author has a public email set:
user_emailshows that email address. - If the push author has no public email:
user_emailshows[REDACTED]instead of an empty string ornull.
To test the [REDACTED] case, use a user account with no public email set (User Settings > Profile > Public email left blank), or use a project bot token to trigger the push.
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.
Edited by Rodrigo Tomonari
Merge request reports
Loading

