feat(tvl.el): Add shortcut for push with Autosubmit+1
This almost makes for a sort of fire&forget button, except we don't have a way to automatically pick reviewers yet :) Change-Id: I6f446270f8aaf0409ccb6321bdbb5c349079cd19
This commit is contained in:
parent
b2d46aed2b
commit
7cb9b204e9
1 changed files with 11 additions and 0 deletions
|
@ -64,6 +64,17 @@
|
|||
#'magit-push ["r"]
|
||||
(list "W" "push to Gerrit as a work-in-progress" #'magit-gerrit-push-wip))
|
||||
|
||||
(transient-define-suffix magit-gerrit-push-autosubmit ()
|
||||
"Push to Gerrit with autosubmit enabled."
|
||||
(interactive)
|
||||
(magit-push-refspecs tvl-gerrit-remote
|
||||
(tvl--gerrit-ref tvl-target-branch '("Autosubmit+1"))
|
||||
nil))
|
||||
|
||||
(transient-append-suffix
|
||||
#'magit-push ["r"]
|
||||
(list "A" "push to Gerrit with autosubmit enabled" #'magit-gerrit-push-autosubmit))
|
||||
|
||||
(transient-define-suffix magit-gerrit-submit ()
|
||||
"Push to Gerrit for review."
|
||||
(interactive)
|
||||
|
|
Loading…
Reference in a new issue