about summary refs log tree commit diff
path: root/tools/emacs-pkgs/tvl/tvl.el
blob: 31d1143188be8c4621db637764a468d820520d99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;; tvl.el --- description -*- lexical-binding: t; -*-
;;
;; Copyright (C) 2020 Griffin Smith
;;
;; Author: Griffin Smith <grfn@gws.fyi>
;; Version: 0.0.1
;; Package-Requires: (cl-lib magit)
;;
;; This file is not part of GNU Emacs.
;;
;;; Commentary:
;;
;; This file provides shared utilities for interacting with the TVL monorepo
;;
;;; Code:

(require 'magit)

(define-suffix-command magit-push-and-submit ()
  (interactive)
  (magit-push-refspecs
   "origin" "HEAD:refs/for/master%l=Code-Review+2,publish-comments,submit"
   nil))

(transient-append-suffix
  #'magit-push
  ["r"]

  (list "P" "Push and submit to gerrit" #'magit-push-and-submit))

(provide 'tvl)
;;; tvl.el ends here