How to get the Merge details with plugin

Hi All,

I tried with merge check and controlled the pull request with casual user and Admin.

I referred the below urls and succeed with first merge request check!

https://developer.atlassian.com/stash/docs/latest/reference/plugin-module-types/merge-check.html

https://developer.atlassian.com/stash/docs/latest/tutorials-and-examples/controlling-when-pull-requests-can-be-merged.html

1)

Now, I want to ge these merge details. Means which branch pull request happened and which branch to where the merge happened etc., i.e., I need all the merge details. And I have to print/show these some where.

For this I created "PROJECT1" in satsh server

2)

Yesterday I have gone through "Pre Repository Hook Plugin Module" and in onRecevice(){ } I added some hookResponse.out.println("===") statements and I able to see it on client console i.e., on git.

Later I tried the merge check sample

after running atlas-run for this. I found that My earlier "PROJECT1" got deleted from stash server, is it correct?.

Can anyone please suggest how can I achieve it..

Regards

Anil

2 answers

This widget could not be displayed.

And when I do git merge branch name. what method will call in atlanta stash SDK..?

.I mean I want to do after completion of merge..how can I do it..?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,322 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you