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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,272 views 26 12
Join discussion

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