Module Expr Str Import alias Import alias With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Str Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpSub SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num
N/A N/A 
This script creates CHANGELOG.md sensibly, leaving manual edits to previous
bits of the changelog untouched.

Requires the github_changelog_generator command (see https://github.com/skywinder/github-changelog-generator)
which can be installed with:

gem install github_changelog_generator

You'll also need to make sure you have a Github API token in the environment variable CHANGELOG_GITHUB_TOKEN
 N/A os N/A sys N/A N/A open CHANGELOG.md r f N/A N/A prev_lines N/A N/A f readlines N/A N/A N/A os system github_changelog_generator -o temp.md N/A N/A open temp.md r f N/A N/A temp_lines N/A N/A f readlines N/A headers N/A N/A N/A i line N/A enumerate temp_lines N/A N/A N/A N/A line startswith ## [ N/A N/A N/A N/A headers append i N/A N/A open CHANGELOG.md w f N/A N/A N/A N/A f writelines N/A temp_lines N/A N/A N/A headers N/A 1 1 N/A N/A N/A f writelines N/A prev_lines N/A 1