Provide a mechanism to register callbacks for branch merge approval #189
Labels
complexity: medium
Requires a substantial but not unusual amount of effort to implement
status: accepted
type: feature
A new feature or functionality
Plugin Version
v0.5.2
Proposed functionality
Introduce a mechanism that other plugins can use to prevent the merging of a branch, e.g. to enforce a change policy. This could be a class method on the Branch model used to register callback functions, which return a boolean (pass or fail) and optionally a failure reason. For example:
This will complement (or, potentially, replace) the current ability to manually register such functions via the plugin's configuration:
Use case
This will enable other plugins to integrate with the branch merging functionality and enforce administrative policy.
External dependencies
N/A
The text was updated successfully, but these errors were encountered: