Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Check file change in pull request.

Tommy Chang April 26, 2019

Hello, 

I'm working on a project which use bitbucket server SDK to develop a plugin which will check whether a specific file is modified in a pull request. If it's modified, we need to take some additional actions.

I'm currently trying to implement a class which implements RepositoryMergeCheck interface. In the preUpdate method, I can get a PreRepositoryHookContext object as well as a PullRequestMergeHookRequest. But how can I get the list of strings which contains the filename of modified files in this commit?

Any ideas?

1 answer

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 29, 2019

Hi Tommy, and welcome!

For questions like this one, you'll have more chances to find the response you're looking for in our Developer Community! You'll find a lot of resources regarding developing for our products as well a lot of developers that will be happy to help you.

For any other questions regarding our products, don't hesitate to contact us again :) 

Have a good day,

Ana

Tommy Chang April 29, 2019

Thanks Ana, Ill repost it into Developer Community.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events