package com.atlassian.qantas.stash.hook;
import com.atlassian.bitbucket.hook.*;
import com.atlassian.bitbucket.hook.repository.*;
import com.atlassian.bitbucket.repository.*;
import com.atlassian.bitbucket.server.ApplicationPropertiesService;
import com.atlassian.bitbucket.setting.*;
import java.util.Collection;
import java.util.stream.Stream;
public class StashScanner implements PreRepositoryHook<RepositoryHookRequest>
{
private ApplicationPropertiesService properties;
// public StashScanner(ApplicationPropertiesService properties)
// {
// this.properties = properties;
// }
@Override
public RepositoryHookResult preUpdate(PreRepositoryHookContext context, RepositoryHookRequest request) {
Repository repo = request.getRepository();
Settings settings = context.getSettings();
return RepositoryHookResult.rejected("test","test") ;
}
}
When I'm enabling the constructor I'm not able to see the hook on the local server.
Any help will be appreciated.
Community moderators have prevented the ability to post new answers.