Skip to content

Commit

Permalink
Merge pull request #6024 from cblecker/helpy-mchelpface
Browse files Browse the repository at this point in the history
Clean up formatting of helpMsg
  • Loading branch information
k8s-ci-robot committed Dec 19, 2017
2 parents 15d2a93 + 4136c4a commit 90c90d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prow/plugins/help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ var (
helpRe = regexp.MustCompile(`(?mi)^/help\s*$`)
helpRemoveRe = regexp.MustCompile(`(?mi)^/remove-help\s*$`)
helpGuidelinesURL = "https://git.k8s.io/community/contributors/devel/help-wanted.md"
helpMsgPruneMatch = "This request has been marked as needing help from a contributor."
helpMsg = `
This request has been marked as needing help from a contributor.
Please ensure the request meets the requirements listed [here](` + helpGuidelinesURL + `).
If this request no longer meets these requirements, the label can be removed
by commenting with the "/remove-help" command.
by commenting with the ` + "`/remove-help`" + ` command.
`
)

Expand Down Expand Up @@ -122,6 +123,6 @@ func shouldPrune(log *logrus.Entry, botName string) func(github.IssueComment) bo
if comment.User.Login != botName {
return false
}
return strings.Contains(comment.Body, helpMsg)
return strings.Contains(comment.Body, helpMsgPruneMatch)
}
}

0 comments on commit 90c90d8

Please sign in to comment.