Make lola-release-notes useful as a non-interactive function too

This commit is contained in:
Jeremy Dormitzer 2020-04-17 12:44:53 -04:00
parent 04b113eb6b
commit 0819cc0e55

View File

@ -5331,7 +5331,7 @@ The aws-mfa command:
"~/lola/release-manager/release_notes")
"The directory containing the release notes repository.")
(defun lola-release-notes (staged)
(defun lola-release-notes (staged &optional repos)
"Prints release notes for the latest release.
If called with a prefix argument, prints release notes
for the upcoming release instead."
@ -5340,10 +5340,12 @@ The aws-mfa command:
"lola-travel-service"
"lola-desktop"))
(repos
(if (y-or-n-p "Query all repos?")
all-repos
(completing-read-multiple "Repos: "
all-repos))))
(or
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