Skip to content

Instantly share code, notes, and snippets.

@peppy
Created June 16, 2017 08:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peppy/2a85e407006aa0f416c6c2c1b6ad4e60 to your computer and use it in GitHub Desktop.
Save peppy/2a85e407006aa0f416c6c2c1b6ad4e60 to your computer and use it in GitHub Desktop.
#!/bin/bash
PROJECTS="osu osu-framework"
OUTPUT_FILE="output.md"
PREAMBLE="# Disclaimer
Thank you for your interest in osu!lazer.
These pre-releases are provided for people interested in following development and getting a sneak-peek at what we're working on. osu!lazer is *not* yet intended to be a playable alternative to [osu-stable](https://osu.ppy.sh). If it doesn't work for you and you are unable to submit a fix, please check back at a later date!
More information is available in the [project readme](https://github.com/ppy/osu). Daily dev updates are also [posted on my blog](https://blog.ppy.sh)."
generate()
{
github_changelog_generator -o $1.md --unreleased-only --max-issues 0 --no-issues --no-compare-link --release-branch master --simple-list https://github.com/ppy/$1
}
echo -e "$PREAMBLE" > $OUTPUT_FILE
for project in $PROJECTS; do
generate $project
echo -e "\n# changes in [$project](https://github.com/ppy/$project)" >> $OUTPUT_FILE
gtail -n +4 $project.md | ghead -n -4 >> $OUTPUT_FILE
rm $project.md
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment