How can I create a pre-receive hook to reject merge commits using Adaptivist Scriptrunner for BitBucket? This page mentions it's possible: https://scriptrunner.adaptavist.com/latest/bitbucket/PreReceiveHooks.html#_reject_merge_commits , but doesn't describe how. I suspect my installation is using an older version of the plugin, because it isn't specifically listed in the examples. Presumably there is some block of Groovy code I can add to do it.
It's not a built-in pre-receive hook for the version I'm using. I'm not sure how to check the version, how can I find that?
I don't have the option of upgrading it since I work for a very large corporation and have no control over what version they are using. There should be fairly straight-forward way of doing it in the Groovy-based API though shouldn't there?
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
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!
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot