Fetching contributors…
Cannot retrieve contributors at this time
executable file 32 lines (23 sloc) 839 Bytes
#!/usr/bin/env python
This script creates sensibly, leaving manual edits to previous
bits of the changelog untouched.
Requires the github_changelog_generator command (see
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
import os
import sys
with open('', 'r') as f:
prev_lines = f.readlines()
os.system('github_changelog_generator -o')
with open('', 'r') as f:
temp_lines = f.readlines()
headers = []
for i, line in enumerate(temp_lines):
if line.startswith('## ['):
with open('', 'w') as f: