From edeb90692212ab0ebcea2e03c47afaaa30c826bc Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 20 Oct 2023 08:34:57 +0100 Subject: [PATCH] ;dev:bake lastweek --- bake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bake b/bake index e77d29bbf..be83e183e 100755 --- a/bake +++ b/bake @@ -14,6 +14,7 @@ Commands: ./bake relfiles - symlink important files temporarily in .relfiles/ ./bake prep VERSION - prepare this release on today's date ./bake bin - push the current branch to CI to generate binaries +./bake lastweek - show last week info useful for TWIH prep does the following: - autocreates and switches to the appropriate release branch @@ -152,6 +153,15 @@ bin() { run git push -f github HEAD:binaries } +# Show last week info, useful for TWIH (sm's at least). +lastweek() { + tt bal hledger -DTS -b '7 days ago' + echo + tt print hledger -b '7 days ago' | grep -E '^[^ ]|hledger' + echo + git log --format='%C(yellow)%cd %ad %Cred%h%Creset %s %Cgreen(%an)%Creset%C(bold blue)%d%Creset' --date=short --since="7 days ago" --reverse +} + if declare -f "$1" > /dev/null; then "$@"; else usage; fi # ** notes