func (c *Client) ShouldReport(pj *v1.ProwJob) bool {

	if !pj.Spec.Report {
		// Respect report field
		return false
	}

	if pj.Spec.Type != v1.PresubmitJob && pj.Spec.Type != v1.PostsubmitJob {
		// Report presubmit and postsubmit github jobs for github reporter
		return false
	}

	if c.reportAgent != "" && pj.Spec.Agent != c.reportAgent {
		// Only report for specified agent
		return false
	}

	return true
}
func (c *Client) ShouldReport(pj *v1.ProwJob) bool {

	if !pj.Spec.Report {
		
		return false
	}

	if pj.Spec.Type != v1.PresubmitJob && pj.Spec.Type != v1.PostsubmitJob {
		
		return false
	}

	if c.reportAgent != "" && pj.Spec.Agent != c.reportAgent {
		
		return false
	}

	return true
}
func ( c * Client ) ShouldReport ( pj * v1 . ProwJob ) bool { if ! pj . Spec . Report { // Respect report field return false } if pj . Spec . Type != v1 . PresubmitJob && pj . Spec . Type != v1 . PostsubmitJob { // Report presubmit and postsubmit github jobs for github reporter return false } if c . reportAgent != " " && pj . Spec . Agent != c . reportAgent { // Only report for specified agent return false } return true }
// ShouldReport returns if this prowjob should be reported by the github reporter
ShouldReport returns if this prowjob should be reported by the github reporter