diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php index c8825e1..f16921a 100644 --- a/Source/MantisSourcePlugin.class.php +++ b/Source/MantisSourcePlugin.class.php @@ -32,6 +32,7 @@ 'EVENT_SOURCE_UPDATE_REPO_FORM' => 'update_repo_form', 'EVENT_SOURCE_UPDATE_REPO' => 'update_repo', + 'EVENT_SOURCE_PRECOMMIT' => 'precommit', 'EVENT_SOURCE_COMMIT' => 'commit', 'EVENT_SOURCE_IMPORT_REPO' => 'import_repo', @@ -54,6 +55,10 @@ return $p_repo; } + function precommit( $p_event ) { + return null; + } + abstract function commit( $p_event, $p_repo, $p_data ); function import_repo( $p_event, $p_repo ) {