[meld] maint: Add a push helper and use to complete the NEWS workflow
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] maint: Add a push helper and use to complete the NEWS workflow
- Date: Sat, 23 Aug 2014 04:18:51 +0000 (UTC)
commit 87c90dc6316e01c4e723bed49f56cf4b97c44f97
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Aug 23 07:14:33 2014 +1000
maint: Add a push helper and use to complete the NEWS workflow
maint.py | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/maint.py b/maint.py
index f00784f..40fa54a 100755
--- a/maint.py
+++ b/maint.py
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]