Skip to content

Commit

Permalink
Add an option to commit the automatic changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Sep 3, 2013
1 parent df4d4c4 commit decf64d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions changes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,14 @@ def changelog(arguments):
)
log.info('Added content to CHANGELOG.md')

execute(
['git', 'ci', '-m', '"%s"' % new_version, '%s/__init__.py' % app_name],
dry_run=dry_run
)
if arguments['--commit-changelog']:
execute(
['git', 'ci', '-m', '"%s"' % new_version, '%s/__init__.py' % app_name],
dry_run=dry_run
)

execute(['git', 'push'], dry_run=dry_run)
log.info('Committed changelog update')
execute(['git', 'push'], dry_run=dry_run)
log.info('Committed changelog update')

def tag(arguments):
dry_run=arguments['--dry-run']
Expand Down Expand Up @@ -252,6 +253,8 @@ def release(arguments):
--pypi=<pypi> Specify alternative pypi
--dry-run Prints the commands that would have been executed.
--commit-changelog Should the automatically generated changelog be
committed?
--debug Debug output.
"""

Expand Down

0 comments on commit decf64d

Please sign in to comment.