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:
parent
7cb9b204e9
commit
1b94d2c0ba
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue