ScriptRunner script to require version increment

erockx October 9, 2018

I'm trying to write a Scriptrunner for BitBucket script that will prevent a merge if ...

  • the destination branch is master
  • the setup.py file is not part of the pull request
  • the version number within setup.py has not been incremented

@adammarkham, I've seen your solutions that could help me in the posts below ...

But when I try to use them, it says the default variables are not found.  Any suggestions for how to get your past custom scripts to work in the "Conditional Merge Check" or ideas for my specific requirements above?

Conditional Merge Check screen shot.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events