Skip to content

Commit

Permalink
Clean up formatting of helpMsg
Browse files Browse the repository at this point in the history
  • Loading branch information
cblecker committed Dec 19, 2017
1 parent 003dc4e commit 4136c4a
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 4136c4a

Please sign in to comment.