How can i take a file from repository in a bitbucket plugin?

I have a bitbucket plugin with a merge hook. When i am checking pull request (check method) i need to pick a file from this repository and receive some information. How can i do that? 

 

The easiest solution i see is just to use bitbucket restapi. But plugin is a part of bitbucket and i don't think it's okay. I think it should be much more easier to do

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Agile

Managing Projects in Several Jiras at the Same Time

Have you ever noticed that fixing specific problems might be a door opener for a bigger challenge, affecting a wider audience? This was exactly the case when we, as a service company working with mul...

84 views 1 12
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