HomeDevCentral

Phabricator integration
c3f751a02e57Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

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.

  1. Generate an API token at https://phabricator.domain.tld/settings/panel/apitokens/
  1. 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"
            ]
        }
    ]
}

Details

Provenance
derecksonAuthored on
Parents
rNOTIFf71c7d64c50d: Move NotificationListener code to a dedicated job
Branches
Unknown
Tags
Unknown