From b61cd5b11c0c391bae812ed651e8a19ff376526b Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 12 Dec 2024 15:33:30 -1000 Subject: [PATCH] ;tools: just ghrelnotes-publish: update release notes on github Requires Github's `gh` CLI tool. --- Justfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Justfile b/Justfile index e55f0a1b2..9662064e7 100644 --- a/Justfile +++ b/Justfile @@ -1441,13 +1441,17 @@ _on-master-branch: just _on-release-branch tools/relnotes.hs -# Generate github release notes for the .version release and copy to clipboard. +# Generate github release notes for the current release, on stdout and in clipboard. @ghrelnotes: just _on-release-branch - doc/ghrelnotes `cat .version` | pbcopy - echo "Github release notes for `cat .version` copied to clipboard" - echo "Paste into release created by tags push" - echo "Or if that failed, create it manually: https://github.com/simonmichael/hledger/releases/new" + doc/ghrelnotes `cat .version` | tee pbcopy + # echo "Github release notes for `cat .version` copied to clipboard" + # echo "Paste into release created by tags push" + # echo "Or if that failed, create it manually: https://github.com/simonmichael/hledger/releases/new" + +# Generate github release notes and update the release on github with the latest text. +@ghrelnotes-publish: + just ghrelnotes | gh release edit -F- `cat .version` # Make git tags for a full release today. Run on release branch. reltags: