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

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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

434 views 6 9
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