aboutsummaryrefslogtreecommitdiff
path: root/git-codereview
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2023-07-27 19:24:36 +0100
committerGopher Robot <gobot@golang.org>2023-07-27 22:19:34 +0000
commit1ade026284a47e90ec5d88ab48f869725092b4cb (patch)
tree4a613591cb0b90984484516f060e3d3dbc659943 /git-codereview
parent99fd4b8dbe8c97a1cc916aec11206eb063213b43 (diff)
downloadgo-x-review-1ade026284a47e90ec5d88ab48f869725092b4cb.tar.xz
git-codereview: allow _content to not warnv1.5.0
Fixes golang/go#45734 Change-Id: I20ebc9fb728c5e91a3d71d3a6290ccf27ceb14cf Reviewed-on: https://go-review.googlesource.com/c/review/+/496775 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'git-codereview')
-rw-r--r--git-codereview/change.go2
-rw-r--r--git-codereview/change_test.go1
2 files changed, 2 insertions, 1 deletions
diff --git a/git-codereview/change.go b/git-codereview/change.go
index 3bdcd75..65f503f 100644
--- a/git-codereview/change.go
+++ b/git-codereview/change.go
@@ -256,7 +256,7 @@ func parseCL(arg string) (cl, patchset string, ok bool) {
return m[1], m[2], true
}
-var messageRE = regexp.MustCompile(`^(\[[a-zA-Z0-9.-]+\] )?[a-zA-Z0-9-/,. ]+: `)
+var messageRE = regexp.MustCompile(`^(\[[a-zA-Z0-9.-]+\] )?[a-zA-Z0-9-_/,. ]+: `)
func commitMessageOK() bool {
body := cmdOutput("git", "log", "--format=format:%B", "-n", "1")
diff --git a/git-codereview/change_test.go b/git-codereview/change_test.go
index cd0cbcc..500ae69 100644
--- a/git-codereview/change_test.go
+++ b/git-codereview/change_test.go
@@ -80,6 +80,7 @@ func TestMessageRE(t *testing.T) {
{"math/rand: make randomer", true},
{"math/rand, crypto/rand: fix random sources", true},
{"cmd/internal/rsc.io/x86: update from external repo", true},
+ {"_content/blog: fix typos", true},
} {
got := messageRE.MatchString(c.in)
if got != c.want {