Should I use GitMergeBaseBuilder only in merge hook?
GitMergeBaseBuilder always return null when I use it in PreRepositoryHook.
I created a pull-request Feature --> Master branch without luck.
final GitMergeBaseBuilder builder = builderFactory.builder(repository).mergeBase().between(commitInMaster.getId(), commitInFeature.getId());
final String sha = builder.build(new OutputHandler()).call();
Many thanks,
Terry
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.