From 1b94d2c0baee15baa03e805d6d64a3cf4d601f6a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 10 Dec 2021 21:59:35 +0300 Subject: feat(tvl.el): Add autosubmit feature to magit-gerrit-rubberstamp This makes this function a true rubberstamp again, leading to rubberstamped CLs automatically being merged after CI passes. This is similar to the initial functionality we had last year, where this directly submitted changes, but with the addition of the CI checks. Change-Id: I946b074b968eb18a64c4edb0043f7a4af28759b4 --- tools/emacs-pkgs/tvl/tvl.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tools/emacs-pkgs') diff --git a/tools/emacs-pkgs/tvl/tvl.el b/tools/emacs-pkgs/tvl/tvl.el index 77aa5e5661..2f9a04619c 100644 --- a/tools/emacs-pkgs/tvl/tvl.el +++ b/tools/emacs-pkgs/tvl/tvl.el @@ -88,13 +88,15 @@ (transient-define-suffix magit-gerrit-rubberstamp () - "Push, automatically approve and submit to Gerrit. This -rubberstamp operation is dangerous and should only be used in -`//users'." + "Push, approve and autosubmit to Gerrit. CLs created via this +rubberstamp method will automatically be submitted after CI +passes. This is potentially dangerous, use with care." (interactive) (magit-push-refspecs tvl-gerrit-remote (tvl--gerrit-ref tvl-target-branch - '("Code-Review+2" "publish-comments")) + '("Code-Review+2" + "Autosubmit+1" + "publish-comments")) nil)) (transient-append-suffix -- cgit 1.4.1