summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2026-01-27 22:18:14 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2026-01-27 22:18:14 +0100
commit970e0da8609bd8750931b318cb465a680578cf65 (patch)
treea5cdc2a206c14b85119b7a8e2ed4dc758008e31b /.config
parent6ccda7cca5b5cf1d055eaef7471ad95f4c3a3ec8 (diff)
emacs: Make patch PRs on release
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/site-lisp/gh.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/emacs/site-lisp/gh.el b/.config/emacs/site-lisp/gh.el
index 23086e5..9f7d348 100644
--- a/.config/emacs/site-lisp/gh.el
+++ b/.config/emacs/site-lisp/gh.el
@@ -26,7 +26,9 @@ via `gh-get-labels'."
(label-string (mapconcat #'identity labels ",")))
;; TODO: Remove this
(when (string= project "blixem")
- (setq title (format "%s %s" (car (vc-git-branches)) title)))
+ (setq title (format "%s %s" (car (vc-git-branches)) title))
+ (when (member "Patch" labels)
+ (setq flags (append flags '("--base" "release")))))
(setq flags (append flags `("--title" ,title)))
(when draftp
(setq flags (append flags '("--draft"))))