prow/plugins/releasenote/releasenote.go
func determineReleaseNoteLabel(body string) string {
	composedReleaseNote := strings.ToLower(strings.TrimSpace(getReleaseNote(body)))

	if composedReleaseNote == "" {
		return ReleaseNoteLabelNeeded
	}
	if noneRe.MatchString(composedReleaseNote) {
		return releaseNoteNone
	}
	if strings.Contains(composedReleaseNote, actionRequiredNote) {
		return releaseNoteActionRequired
	}
	return releaseNote
}
func determineReleaseNoteLabel(body string) string {
	composedReleaseNote := strings.ToLower(strings.TrimSpace(getReleaseNote(body)))

	if composedReleaseNote == "" {
		return ReleaseNoteLabelNeeded
	}
	if noneRe.MatchString(composedReleaseNote) {
		return releaseNoteNone
	}
	if strings.Contains(composedReleaseNote, actionRequiredNote) {
		return releaseNoteActionRequired
	}
	return releaseNote
}
func determineReleaseNoteLabel ( body string ) string { composedReleaseNote := strings . ToLower ( strings . TrimSpace ( getReleaseNote ( body ) ) ) if composedReleaseNote == " " { return ReleaseNoteLabelNeeded } if noneRe . MatchString ( composedReleaseNote ) { return releaseNoteNone } if strings . Contains ( composedReleaseNote , actionRequiredNote ) { return releaseNoteActionRequired } return releaseNote }
// determineReleaseNoteLabel returns the label to be added based on the contents of the 'release-note'
// section of a PR's body text.
determineReleaseNoteLabel returns the label to be added based on the contents of the release - note section of a PR s body text .