Webhook (push) does not contain enough information about renamed files

Our self-hosted Gitlab version is 17.6. We have an ultimate license on our self-hosted instance.

We use webhooks from our self-hosted Gitlab to an external API in order to trigger certain events in our organisation. The webhooks from Gitlab to our API contain information about when a file is added, removed or modified.

However, if a file is renamed it appears as an “add”, but nothing in “removed” for the old filename.

I think the webhook should include a “remove” for the old filename when a file is renamed.

Here’s an example webhook with commit-data when a file is renamed. It’s missing the old filename in the “removed” section:

“commits”: [
{
“id”: “696079ed482985755245c35095cbbbf0930b28cd”,
“message”: “test”,
“title”: “test”,
“timestamp”: “2025-01-28T15:12:58+01:00”,
“url”: “https://…[REDACTED]…/696079ed482985755245c35095cbbbf0930b28cd”,
“author”: {
“name”: “[REDACTED]”,
“email”: “[REDACTED]”
},
“added”: [
“docs/MensuraFeruntur.md”
],
“modified”: [

  ],
  "removed": [

  ]
}

],