| 1 |
"""collection of simple hooks for common tasks (EXPERIMENTAL) |
| 2 |
|
| 3 |
This extension provides a number of simple hooks to handle issues |
| 4 |
commonly found in repositories with many contributors: |
| 5 |
- email notification when changesets move from draft to public phase |
| 6 |
- email notification when changesets are obsoleted |
| 7 |
- enforcement of draft phase for all incoming changesets |
| 8 |
- enforcement of a no-branch-merge policy |
| 9 |
- enforcement of a no-multiple-heads policy |
| 10 |
|
| 11 |
The implementation of the hooks is subject to change, e.g. whether to |
| 12 |
implement them as individual hooks or merge them into the notify |
| 13 |
extension as option. The functionality itself is planned to be supported |
| 14 |
long-term. |
| 15 |
""" |
| 16 |
|
| 17 |
from __future__ import annotations |
| 18 |
|
| 19 |
from . import ( |
| 20 |
changeset_obsoleted, |
| 21 |
changeset_published, |
| 22 |
) |
| 23 |
|
| 24 |
# configtable is only picked up from the "top-level" module of the extension, |
| 25 |
# so expand it here to ensure all items are properly loaded |
| 26 |
configtable = {} |
| 27 |
configtable.update(changeset_published.configtable) |
| 28 |
configtable.update(changeset_obsoleted.configtable) |