From ea2aec86b1d62e5be70af752a6124bb3ed100586 Mon Sep 17 00:00:00 2001 From: Ivan Palladino Date: Fri, 14 Jun 2019 18:53:25 +0200 Subject: [PATCH] gopherbot: relaxed matching rule for the documentation label Documentation word is more specific than document to match issues related to Documentation. Fixes golang/go#31153 --- cmd/gopherbot/gopherbot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gopherbot/gopherbot.go b/cmd/gopherbot/gopherbot.go index 45ef7349a2..bf843f4dd8 100644 --- a/cmd/gopherbot/gopherbot.go +++ b/cmd/gopherbot/gopherbot.go @@ -1988,7 +1988,7 @@ func isDocumentationTitle(t string) bool { if strings.Contains(t, "godoc:") { // in x/tools, or the dozen places people file it as return false } - return strings.Contains(t, "document") || + return strings.Contains(t, "documentation") || strings.Contains(t, "docs ") }