Phabricator integration
Allow to receive payloads from Phabricator.
[ How to install it - Notifications center side ]
Each door matches a specific Phabricator instance.
We support several Phabricator instances.
- Generate an API token at https://phabricator.domain.tld/settings/panel/apitokens/
- Add the following block to storage/app/credentials.json:
{ "services": [ …, { "gate": "Phabricator", "door": "Nasqueron", "instance": "https://devcentral.nasqueron.org", "secret": "api-..." } ] }
[ How to install it - Phabricator side ]
To enable it in Phaabricator, define the feed.http-hooks setting in
https://phabricator.domain.tld/config/group/feed/
The URL should be:
https://notifications.domain.tld/gate/Phabricator/<Project>
[ Analyzer notes ]
You can route Phabrictor events by groups,
with a mapping groups <--> projects.
It works a very similar way of the GitHub repo/group mapping
with two differences:
- it map projects, and not repositories
- it allows to use words as a fallback when no projects are set
Here an example of the map we use for Nasqueron:
{ "administrativeGroup": "orgz", "defaultGroup": "nasqueron", "groupsMapping": [ { "group": "docker", "projects": [ "Docker images", "Nasqueron Docker deployment squad" ] }, { "group": "tasacora", "projects":[ "Tasacora" ], "words": [ "Tasacora", "cartography" ] }, { "group": "ops", "projects": [ "Continous integration and delivery", "IPv6", "Mail", "Message queues", "Murasil", "Nasqueron security operations squad", "Servers", "Ops-sprint-*" ], "words": [ "Ysul", "Dwellers", "pkg audit" ] } ] }