Skip to content

Instantly share code, notes, and snippets.

View icorbrey's full-sized avatar
πŸ“Ή
And we're live!

Isaac Corbrey icorbrey

πŸ“Ή
And we're live!
View GitHub Profile
@icorbrey
icorbrey / changelog.nu
Last active April 30, 2025 21:38
Generates nicely formatted changelogs from a Jujutsu revset. Requires nushell and semantic commits. Config: `aliases.changelog = ["util", "exec", "nu", "~/.config/jj/scripts/changelog.nu"]` (with whatever your script path is)
# ╔══════════════════════════════════════════════════════════════════════════╗
# β•‘ changelog.nu – produce collapsible-Markdown release notes from jj log β•‘
# β•‘ β•‘
# β•‘ Usage: nu changelog.nu [<revset>] β•‘
# β•‘ – <revset> always appends "~empty()" to drop empty commits. β•‘
# β•‘ Needs: Nushell 0.91+ β€’ jj 0.24+ β•‘
# β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
export def main [revset: string] {