The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to reject a merge when a certain file type is present in the repository

Max Albrecht
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2019

I want to prevent that it's possible to push *.log files into the master branch via merging a pull request.

I have the Scriptrunner add-on available but can't find a useful example of how to access the source files of the repository which is about to be merged. I checked the BItbucket Server API but didn't find a way to access the repository contents. Please help!

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events