It's an interesting idea. Really, it should be done in such a way so that hooks can be added to catch all new branch events at the following levels:
- owned by a Person
- subscribed by a Person
- in a project group
- in a project
- in source package
- in a distro source package
- in a distribution
Since each of these is a meaningful container of branches.
Given that we already have to do something like this for sending out email, the extra effort of having a hook at each of those levels ought not be too hard. If it is, we should make it easier :)
Also, there are murmurings of Launchpad growing a messaging system. If we had something like that, then perhaps this should simply be an XMPP <-> webhook adapter?
It's an interesting idea. Really, it should be done in such a way so that hooks can be added to catch all new branch events at the following levels:
- owned by a Person
- subscribed by a Person
- in a project group
- in a project
- in source package
- in a distro source package
- in a distribution
Since each of these is a meaningful container of branches.
Given that we already have to do something like this for sending out email, the extra effort of having a hook at each of those levels ought not be too hard. If it is, we should make it easier :)
Also, there are murmurings of Launchpad growing a messaging system. If we had something like that, then perhaps this should simply be an XMPP <-> webhook adapter?