AzaToth has uploaded a new change for review.
https://gerrit.wikimedia.org/r/50041
Change subject: (Bug #44961) get rid of "Patch Set" in comments
......................................................................
(Bug #44961) get rid of "Patch Set" in comments
Change-Id: Ic261fb4458bff5344e583ea3ddc368ee46c24a8e
---
M files/gerrit/hooks/comment-added
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/41/50041/1
diff --git a/files/gerrit/hooks/comment-added b/files/gerrit/hooks/comment-added
index 4877f5d..3e87aaf 100755
--- a/files/gerrit/hooks/comment-added
+++ b/files/gerrit/hooks/comment-added
@@ -17,7 +17,7 @@
self.parser.add_option("--VRIF", dest="verified")
self.parser.add_option("--CRVW", dest="codereview")
(options, args) = self.parser.parse_args()
- comment = options.comment.splitlines()
+ comment = re.sub(r"^\s*Patch Set \d+:.*$", '', options.comment,
flags=re.MULTILINE).strip().splitlines()
if comment:
comment = comment[0]
if len(comment) > 103:
--
To view, visit https://gerrit.wikimedia.org/r/50041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic261fb4458bff5344e583ea3ddc368ee46c24a8e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: AzaToth <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits