Make lola-release-notes useful as a non-interactive function too
This commit is contained in:
parent
04b113eb6b
commit
0819cc0e55
@ -5331,7 +5331,7 @@ The aws-mfa command:
|
|||||||
"~/lola/release-manager/release_notes")
|
"~/lola/release-manager/release_notes")
|
||||||
"The directory containing the release notes repository.")
|
"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.
|
"Prints release notes for the latest release.
|
||||||
If called with a prefix argument, prints release notes
|
If called with a prefix argument, prints release notes
|
||||||
for the upcoming release instead."
|
for the upcoming release instead."
|
||||||
@ -5340,10 +5340,12 @@ The aws-mfa command:
|
|||||||
"lola-travel-service"
|
"lola-travel-service"
|
||||||
"lola-desktop"))
|
"lola-desktop"))
|
||||||
(repos
|
(repos
|
||||||
(if (y-or-n-p "Query all repos?")
|
(or
|
||||||
all-repos
|
repos
|
||||||
(completing-read-multiple "Repos: "
|
(if (y-or-n-p "Query all repos?")
|
||||||
all-repos))))
|
all-repos
|
||||||
|
(completing-read-multiple "Repos: "
|
||||||
|
all-repos)))))
|
||||||
(with-env-from-file (expand-file-name
|
(with-env-from-file (expand-file-name
|
||||||
(concat release-notes-repo "/.env"))
|
(concat release-notes-repo "/.env"))
|
||||||
(async-shell-command
|
(async-shell-command
|
||||||
|
Loading…
Reference in New Issue
Block a user