we use script runner for restricting rewriting history to all (*) branches, but we are facing problem when developers wanted to squash their commits on feature branch.
I tried multiple approaches like including all branches that wanted to be restricted but couldn't exclude specific branch (feature) for allowing squash and all remaining branches to have the restriction. Open for any suggestions.