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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events