Is there a particular way of enforcing log messages only for a couple of branches in stash (say master or develop). In other feature branches we don't want to enforce a log message format as of now. Developers are free to create the branches they want (the build will happen only when a merge happens to a branch - say "develop" )
We downloaded the yacc plugin, but I don't see a way to not enforce a commit messages in that depending on branch names
There is a paid add-on available in the Atlassian Marketplace called ScriptRunner for Stash which allows you to conditionally enforce a number things including commit messages. There are a number of canned conditions available as examples, or you can write your own using Groovy. These Pre-Receive Hooks can be configured for your whole Stash instance, select projects or repositories. The protect git references pre-receive hook includes example conditions for both a master branch and a feature branch and much more.
I hope it helps.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
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