The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Should I use GitMergeBaseBuilder only in merge hook?

Terry Hwang
Contributor
June 10, 2021

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

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events