System hook for group project creation owner_email is empty
Summary
The system hook project_create
doesn't include the owner_email
when creating a project inside a group
Steps to reproduce
- Set up a system hook
- Create a project under the user namespace
- The output is similar to:
{ "event_name": "project_create", "created_at": "2019-03-25T18:06:58+01:00", "updated_at": "2019-03-25T18:06:58+01:00", "name": "test", "path": "test", "path_with_namespace": "aexvir/test", "project_id": 0000, "owner_name": "Alex Viscreanu", "owner_email": "alexviscreanu@gmail.com", "project_visibility": "internal" }
- Create a project inside a group
- The output is similar to:
{ "event_name": "project_create", "created_at": "2019-03-25T18:03:04+01:00", "updated_at": "2019-03-25T18:03:04+01:00", "name": "test", "path": "test", "path_with_namespace": "platform/test", "project_id": 0000, "owner_name": "Platform Team", "owner_email": "", "project_visibility": "internal" }
What is the current bug behavior?
Data sent by the hook:
"owner_email": ""
What is the expected correct behavior?
To include the email of whoever created the project. That info is available if the project is inspected in the admin panel, and it should be sent in the hook request as welk.
Edited by Alex Viscreanu