Include information about the user executing the action in project update event when project is in a group
Description
When creating a project in a group, the system hook sent doesn't include any information about who executed the project action when creating/deleting/renaming a project, as can be seen in the current event example.
Proposal
Extend the current event schema to include information about the user:
{
"created_at": "2012-07-21T07:30:54Z",
"updated_at": "2012-07-21T07:38:22Z",
"event_name": "project_create",
"name": "StoreCloud",
"owner_email": "johnsmith@gmail.com",
"owner_name": "John Smith",
"path": "storecloud",
"path_with_namespace": "jsmith/storecloud",
"project_id": 74,
"project_visibility": "private",
"user_email": "johnsmith@gmail.com",
"user_name": "John Smith",
"user_username": "johnsmith",
"user_id": 41
}
Links / references
Documentation blurb
Overview
This change would make it more explicit who is executing projects changes without having to go through the audit event which cannot be automated as there is no API for it yet and even if there was one, webhooks make a lot more sense in that case than having to regularly poll from an API.
Use cases
Our use case would be to give us the ability to automate the configuration of a new project in gitlab, by emailing the user who created the repo with links allow him/her to choose pre-configured actions to be executed on the repository.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml