ArielGlenn has submitted this change and it was merged.
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(-)
Approvals:
Demon: Looks good to me, but someone else must approve
ArielGlenn: Looks good to me, approved
Matmarex: Looks good to me, but someone else must approve
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: Ic261fb4458bff5344e583ea3ddc368ee46c24a8e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: AzaToth <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Matmarex <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits