Skip to content

Commit

Permalink
spread out
Browse files Browse the repository at this point in the history
  • Loading branch information
adomani committed Aug 2, 2024
1 parent d5afe92 commit ce1f2ef
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions monthly_summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=^=</details><details><summary>\n=
s=$=\n</summary>\n=
}
s=^PR #\([0-9]*\)=* PR [#\1]('"${baseUrl}"'\1)=' |
sed -z '
s=</details><details><summary>=<details><summary>=
s=\n---\nReports\n\n=\n</details>\n\n---\n\n<details><summary>Reports</summary>\n\n=
s=\n---[\n]*$=\n\n</details>\n&=
'
fi ; }
} | {
if [ "${raw}" == "raw" ]
then
cat -
else # extra .md formatting
sed '
/ [0-9]* PRs$/{
s=^=</details><details><summary>\n=
s=$=\n</summary>\n=
}
s=^PR #\([0-9]*\)=* PR [#\1]('"${baseUrl}"'\1)=' |
sed -z '
s=</details><details><summary>=<details><summary>=
s=\n---\nReports\n\n=\n</details>\n\n---\n\n<details><summary>Reports</summary>\n\n=
s=\n---[\n]*$=\n\n</details>\n&=
'
fi
}

0 comments on commit ce1f2ef

Please sign in to comment.