From 6c89580e3e6d3af7c08b452d2fb9a3e3cabae4ac Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 19 Mar 2020 15:44:21 -0400 Subject: [PATCH] Add release notes script --- emacs/init.org | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 3f3a182..d0da659 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -5233,6 +5233,37 @@ The aws-mfa command: (message (devpi-upload)))) #+END_SRC +** Release notes +#+BEGIN_SRC emacs-lisp + (defvar release-notes-repo (expand-file-name + "~/lola/release-manager/release_notes") + "The directory containing the release notes repository.") + + (defun lola-release-notes (staged) + "Prints release notes for the latest release. + If called with a prefix argument, prints release notes + for the upcoming release instead." + (interactive "P") + (let* ((all-repos '("lola-server" + "lola-travel-service" + "lola-desktop")) + (repos + (if (y-or-n-p "Query all repos?") + all-repos + (completing-read-multiple "Repos: " + all-repos)))) + (with-env-from-file (expand-file-name + (concat release-notes-repo "/.env")) + (async-shell-command + (format + (concat release-notes-repo "/venv/bin/python " + release-notes-repo "/release_notes/query_release_notes.py " + (when staged "--staged ") + " %s") + (combine-and-quote-strings repos)) + "*release-notes*")))) +#+END_SRC + * StumpWM A handy keybinding to connect to the StumpWM SBCL process via SLIME: #+BEGIN_SRC emacs-lisp