mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-01-08 10:01:58 +00:00
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
28 lines
704 B
Plaintext
28 lines
704 B
Plaintext
#!/usr/bin/env nu
|
|
|
|
def main [
|
|
date?: datetime # the date of the last release (default to 4 weeks ago, excluded)
|
|
] {
|
|
let list_merged_prs_script = (
|
|
$env.CURRENT_FILE | path dirname | path join "list-merged-prs"
|
|
)
|
|
|
|
let changelogs = [
|
|
[title repo];
|
|
|
|
[Nushell nushell/nushell]
|
|
[Extension nushell/vscode-nushell-lang]
|
|
[Documentation nushell/nushell.github.io]
|
|
[Nu_Scripts nushell/nu_scripts]
|
|
[Reedline nushell/reedline]
|
|
]
|
|
|
|
$changelogs | each {|changelog|
|
|
[
|
|
$"## ($changelog.title)"
|
|
(^$list_merged_prs_script $changelog.repo --pretty $date)
|
|
] | str join "\n"
|
|
}
|
|
| str join "\n\n"
|
|
}
|