From ce1f2ef3ef62c5f5db4ba6c59085b8048fe00fef Mon Sep 17 00:00:00 2001 From: adomani Date: Fri, 2 Aug 2024 17:12:51 +0200 Subject: [PATCH] spread out --- monthly_summary.sh | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/monthly_summary.sh b/monthly_summary.sh index 492f6244..1c5cdfe2 100755 --- a/monthly_summary.sh +++ b/monthly_summary.sh @@ -117,16 +117,21 @@ fi printf -- $'---\n' rm -rf found_by_gh.txt found_by_git.txt -} | { if [ "${raw}" == "raw" ]; then cat; else # extra .md formatting - sed ' - / [0-9]* PRs$/{ - s=^=
\n= - s=$=\n\n= - } - s=^PR #\([0-9]*\)=* PR [#\1]('"${baseUrl}"'\1)=' | - sed -z ' - s=
=
= - s=\n---\nReports\n\n=\n
\n\n---\n\n
Reports\n\n= - s=\n---[\n]*$=\n\n
\n&= - ' -fi ; } +} | { + if [ "${raw}" == "raw" ] + then + cat - + else # extra .md formatting + sed ' + / [0-9]* PRs$/{ + s=^=
\n= + s=$=\n\n= + } + s=^PR #\([0-9]*\)=* PR [#\1]('"${baseUrl}"'\1)=' | + sed -z ' + s=
=
= + s=\n---\nReports\n\n=\n
\n\n---\n\n
Reports\n\n= + s=\n---[\n]*$=\n\n
\n&= + ' + fi + }