about summary refs log tree commit diff
path: root/tools/emacs-pkgs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-10T18·59+0300
committerVincent Ambo <mail@tazj.in>2021-12-10T19·00+0300
commit1b94d2c0baee15baa03e805d6d64a3cf4d601f6a (patch)
tree015dd95251a151811750f0a7ace53be0925f65d9 /tools/emacs-pkgs
parent7cb9b204e993f888b88f785978b4cf89000f8456 (diff)
feat(tvl.el): Add autosubmit feature to magit-gerrit-rubberstamp r/3196
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
Diffstat (limited to 'tools/emacs-pkgs')
-rw-r--r--tools/emacs-pkgs/tvl/tvl.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/emacs-pkgs/tvl/tvl.el b/tools/emacs-pkgs/tvl/tvl.el
index 77aa5e56619b..2f9a04619c55 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