prow/github/types.go
func (pe PushEvent) Branch() string {
	ref := strings.TrimPrefix(pe.Ref, "refs/heads/") // if Ref is a branch
	ref = strings.TrimPrefix(ref, "refs/tags/")      // if Ref is a tag
	return ref
}
func (pe PushEvent) Branch() string {
	ref := strings.TrimPrefix(pe.Ref, "refs/heads/") // if Ref is a branch
	ref = strings.TrimPrefix(ref, "refs/tags/")      // if Ref is a tag
	return ref
}
func ( pe PushEvent ) Branch ( ) string { ref := strings . TrimPrefix ( pe . Ref , " " ) // if Ref is a branch ref = strings . TrimPrefix ( ref , " " ) // if Ref is a tag return ref }
// Branch returns the name of the branch to which the user pushed.
Branch returns the name of the branch to which the user pushed .