Only match the current ref type, ie: don't match a branch when the ref type is a tag or pull request. Ref is always matched because it's not related to a specific ref type.