check the branch that we are asked to gate against and bail if it isn't master or ends in RC