Commit 87c90dc6 authored by Kai Willadsen's avatar Kai Willadsen

maint: Add a push helper and use to complete the NEWS workflow

parent c5e472a9
......@@ -262,6 +262,19 @@ def commit():
call_with_output(cmd, timeout=None)
def push():
branch = check_release_branch()
cmd = ['git', 'log', 'origin/%s..%s'] % (branch, branch)
call_with_output(cmd, echo_stdout=True)
confirm = click.confirm('\nPush these commits?', default=True)
if not confirm:
return
cmd = ['git', 'push', '--dry-run']
call_with_output(cmd, echo_stdout=True)
@click.group()
def cli():
pass
......@@ -334,7 +347,9 @@ def tag():
@click.pass_context
def make_release(ctx):
ctx.forward(pull)
# Write news, add news to NEWS, commit, push
ctx.forward(news)
commit()
push()
archive_path = ctx.forward(dist)
ctx.forward(tag)
# Copy tarball to master, ssh in and run ftpadmin install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment