func getJobName(spec *prowapi.ProwJobSpec) string {
	if spec.JenkinsSpec != nil && spec.JenkinsSpec.GitHubBranchSourceJob && spec.Refs != nil {
		if len(spec.Refs.Pulls) > 0 {
			return fmt.Sprintf("%s/view/change-requests/job/PR-%d", spec.Job, spec.Refs.Pulls[0].Number)
		}

		return fmt.Sprintf("%s/job/%s", spec.Job, spec.Refs.BaseRef)
	}

	return spec.Job
}
func getJobName(spec *prowapi.ProwJobSpec) string {
	if spec.JenkinsSpec != nil && spec.JenkinsSpec.GitHubBranchSourceJob && spec.Refs != nil {
		if len(spec.Refs.Pulls) > 0 {
			return fmt.Sprintf("%s/view/change-requests/job/PR-%d", spec.Job, spec.Refs.Pulls[0].Number)
		}

		return fmt.Sprintf("%s/job/%s", spec.Job, spec.Refs.BaseRef)
	}

	return spec.Job
}
// getJobName generates the correct job name for this job type