Webhook 'push event' 'user' data content is not organized consistently with other webhooks
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Rationale
The format for "user" data sent into 'push' and 'tags' webhooks is not consistent with merge request, notes events, issue.
It would be nice & clean to get this uniformized, that would help webhooks recipient code to handle webhooks more cleanly.
Details
Push events sends multiple user_*
fields:
"user_id": 4,
"user_name": "John Smith",
"user_username": "jsmith",
"user_email": "john@example.com",
whereas other webhooks provide an inner structure for 'user'; for instance, issue events :
"user": {
"id": 1,
"name": "Administrator",
"username": "root",
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026d=identicon",
"email": "admin@example.com"
},
Not a real blocker point, but I think there's some legacy behind this that could be improved.
Triage
This can be added to the &2318 (closed) epic.
Edited by 🤖 GitLab Bot 🤖