Preventing user from building a release into a branch if the commit's branch doesn't match