Add "added", "modified" and "removed" properties to commit object in webhook
- Customer / Requester: Big Consumer Electronic Company
- Zendesk ticket: https://gitlab.zendesk.com/agent/tickets/7861
Requested feature
According to the customer we do this sort of thing already in email notifications, so maybe it would be easy enough to add it to webhooks JSON as well?
For my buildbot, it would be very useful to include the following properties in the webhook JSON data inside the commit object(s): "added" : A list of strings containing the names of files added in this commit. "modified": A list of strings containing the names of files modified in this commit. "removed": A list of strings containing the names of files removed in this commit.
If none of a particular category exists, the property can either be an empty list or not present.
Github includes this information, so the buildbot scripts are looking for it. Here's an example commit object from Github:
{ "added": [ "README.md" ], "author": { "email": "sdkjfdsjkfhjksdh@mailinator.com", "name": "sdkjfdsjkfhjksdh", "username": "sdkjfdsjkfhjksdh" }, "committer": { "email": "sdkjfdsjkfhjksdh@mailinator.com", "name": "sdkjfdsjkfhjksdh", "username": "sdkjfdsjkfhjksdh" }, "distinct": true, "id": "e2d098d0bc9ddb102fdd32c987d6b978706f70c7", "message": "Initial commit", "modified": [], "removed": [], "timestamp": "2013-06-13T17:11:09-07:00", "url": "https://github.com/sdkjfdsjkfhjksdh/abcd/commit/e2d098d0bc9ddb102fdd32c987d6b978706f70c7" }
Concrete questions / Next steps
@DouweM do the EmailsOnPush notifications contain this information already? If so, how hard would it be to add it to the webhooks?
/cc @JobV