From 8a28d0f3df3d4800f82250eec597150ee5dfc933 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 22 May 2015 12:13:39 -0400 Subject: Add onFork and onRename methods to RepositoryLifeCycleListener --- src/site/plugins_extensions.mkd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/site/plugins_extensions.mkd') diff --git a/src/site/plugins_extensions.mkd b/src/site/plugins_extensions.mkd index 9e0d1705..82dd30bc 100644 --- a/src/site/plugins_extensions.mkd +++ b/src/site/plugins_extensions.mkd @@ -337,6 +337,16 @@ public class MyRepoLifeCycleListener extends RepositoryLifeCycleListener { log.info("Gitblit created {}", repo); } + @Override + public void onFork(RepositoryModel origin, RepositoryModel fork) { + log.info("{} forked to {}", origin, fork); + } + + @Override + public void onRename(String oldName, RepositoryModel repo) { + log.info("{} renamed to {}", oldName, repo); + } + @Override public void onDeletion(RepositoryModel repo) { log.info("Gitblit deleted {}", repo); -- cgit v1.2.3