Discord Integration - Wiki Webhooks not triggered by `git push`
Summary
Under Integrations > Discord Notifications, the webhook for A wiki page is created or updated is triggered when editing the page through a browser on gitlab.com, but NOT when I clone the wiki repository and git push changes.
Steps to reproduce
- Set up the Discord Notifications Integration
- Create or edit a wiki page on gitlab.com. Notice that the webhook is triggered and there is a new Discord message.
- Clone the wiki repository and create or edit a wiki page. Commit the changes and then
git pushthem. Notice that the wiki is updated, but the webhook was not triggered and there was no new Discord message.
Example Project
This should behave the same on any project
What is the current bug behavior?
When changes to a wiki come from a cloned wiki repository via git push, the webhook is not triggered and there is no new Discord message.
What is the expected correct behavior?
When changes to a wiki come from a cloned wiki repository via git push, the webhook should be triggered and there should be a new Discord message.
Relevant logs and/or screenshots
None (it's trivial to describe and reproduce)
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
N/A
Results of GitLab application Check
N/A
Possible fixes
I didn't check the source code for possible fixes, but since other Discord Notifications work when running git push from the main repository (as opposed to the wiki repository), I assume it's not a technical limitation but rather an issue with how the triggers for the wiki webhook are implemented (e.g., only triggering when updated via a browser on gitlab.com).