Please add consistent author information to system hooks
Problem to solve
We would like to know who did the operation that produced a system hook event.
Further details
The information for the user that caused the event is only available in some events.
{
"event_name": "tag_push",
"user_id": 1,
"user_name": "John Smith",
"user_email": "john@example.com",
"user_avatar": "https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80"
}
One other system hooks looks more like the webhook version and lacks some infos, like the e-mail address:
{
"object_kind": "merge_request",
"user": {
"name": "Administrator",
"username": "root",
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon"
}
}
Some other re-use the fields to denote the target of the operation:
{
"event_name": "user_add_to_group",
"user_email": "johnsmith@gmail.com",
"user_name": "John Smith",
"user_username": "johnsmith",
"user_id": 41
}
Proposal
Please add a consistent set of fields to all events. I don't really care how they look, but it should be possible to get the author without trying to look at the type.
What does success look like, and how can we measure that?
(If no way to measure success, link to an issue that will implement a way to measure this)