func checkE2eLogHasRelease(log *logrus.Entry, e2eChange github.PullRequestChange, k8sRelease string) (bool){
        e2eLogHasStatedRelease := false

        fileUrl := patchUrlToFileUrl(e2eChange.BlobURL)
	//log.Errorf("cELHR : %+v",fileUrl)
	resp, err := http.Get(fileUrl)
	if err != nil {
		log.Errorf("cELHR : %+v",err)
	}
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)


	// Make a slice that contains all the key fields in the Product YAML file
        // TODO Check to see if string(body) performant
	for _, line := range strings.Split(string(body), "\n") {
                if strings.Contains(line, k8sRelease){
                        log.Infof("cELHR found stated release!! %s",line)
                        e2eLogHasStatedRelease = true
                        break
                }
        }
        return e2eLogHasStatedRelease

}
// Retrieves e2eLogfile and checks that it contains k8sRelease
Retrieves e2eLogfile and checks that it contains k8sRelease
// Retrieves e2eLogfile and checks that it contains k8sRelease
func checkE2eLogHasRelease(log *logrus.Entry, e2eChange github.PullRequestChange, k8sRelease string) (bool){
        e2eLogHasStatedRelease := false
        fileUrl := patchUrlToFileUrl(e2eChange.BlobURL)
	resp, err := http.Get(fileUrl)
	if err != nil {
		log.Errorf("cELHR : %+v",err)
	}
	defer resp.Body.Close()
	body, err := ioutil.ReadAll(resp.Body)
	for _, line := range strings.Split(string(body), "\n") {
                if strings.Contains(line, k8sRelease){
                        log.Infof("cELHR found stated release!! %s",line)
                        e2eLogHasStatedRelease = true
                        break
                }
        }
        return e2eLogHasStatedRelease
}
func checkE2eLogHasRelease ( log * logrus . Entry , e2eChange github . PullRequestChange , k8sRelease string ) ( bool ) { e2eLogHasStatedRelease := false fileUrl := patchUrlToFileUrl ( e2eChange . BlobURL ) resp , err := http . Get ( fileUrl ) if err != nil { log . Errorf ( " " , err ) } defer resp . Body . Close ( ) body , err := ioutil . ReadAll ( resp . Body ) for _ , line := range strings . Split ( string ( body ) , " \n " ) { if strings . Contains ( line , k8sRelease ) { log . Infof ( " " , line ) e2eLogHasStatedRelease = true break } } return e2eLogHasStatedRelease }
Retrieves e2eLogfile and checks that it contains k8sRelease
Retrieves e2eLogfile and checks that it contains k8sRelease
//log.Errorf("cELHR : %+v",fileUrl) // Make a slice that contains all the key fields in the Product YAML file // TODO Check to see if string(body) performant