Phabricator has a feature for webhooks:
If you'd like to react to events in Phabricator or publish them into external systems, you can configure webhooks.
We currently don't have any tools using those webhooks, because we seem to block all outbound traffic from the phabricator application https://gerrit.wikimedia.org/r/plugins/gitiles/operations/puppet/+/refs/heads/production/modules/phabricator/data/fixed_settings.yaml#229, and seemingly also from the server that phabricator is hosted on (@thcipriani notes that netcat times out when pinging e.g. google.com from the phabricator server).
It seems that at least a few tools would benefit from being able to use webhooks: https://phabricator.wikimedia.org/search/query/rpmZZiCdW1KO/#R
I think there are few things we would need to do:
Loosen the rules for the server that Phabricator is hosted on to allow for some specific domains to be reached (maybe toolforge.org for now?)Already possible- Loosen the rules for Phabricator application to allow external requests to the domain(s) defined above
- Define a process for requesting a webhook, because currently only admins can do so