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
This commit is contained in:
Vincent Ambo 2021-12-10 21:59:35 +03:00
parent 7cb9b204e9
commit 1b94d2c0ba

View file

@ -88,13 +88,15 @@
(transient-define-suffix magit-gerrit-rubberstamp () (transient-define-suffix magit-gerrit-rubberstamp ()
"Push, automatically approve and submit to Gerrit. This "Push, approve and autosubmit to Gerrit. CLs created via this
rubberstamp operation is dangerous and should only be used in rubberstamp method will automatically be submitted after CI
`//users'." passes. This is potentially dangerous, use with care."
(interactive) (interactive)
(magit-push-refspecs tvl-gerrit-remote (magit-push-refspecs tvl-gerrit-remote
(tvl--gerrit-ref tvl-target-branch (tvl--gerrit-ref tvl-target-branch
'("Code-Review+2" "publish-comments")) '("Code-Review+2"
"Autosubmit+1"
"publish-comments"))
nil)) nil))
(transient-append-suffix (transient-append-suffix