From 15d45cb3e7c17ed86cfb5ead20f544981f7e2ba4 Mon Sep 17 00:00:00 2001 From: Zero King Date: Sun, 23 Jul 2017 08:42:00 +0000 Subject: [PATCH] Recognize capital title --- pr/webhook/pull_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr/webhook/pull_request.go b/pr/webhook/pull_request.go index 1c8072e..8cd8621 100644 --- a/pr/webhook/pull_request.go +++ b/pr/webhook/pull_request.go @@ -137,7 +137,7 @@ func (receiver *Receiver) handlePullRequest(body []byte) { if isSubmission { typeLabels = appendIfUnique(typeLabels, "type: submission") } - if strings.Contains(*event.PullRequest.Title, ": update to") { + if strings.Contains(strings.ToLower(*event.PullRequest.Title), ": update to") { typeLabels = appendIfUnique(typeLabels, "type: update") }