(ref #245)ib.py script: added changelog generation.
@@ -170,6 +170,17 @@ def services_kill(args):
print "Unknown service"
sys.exit(1)
+def changelog_create(args):
+ repo_name = 'infrabox/infrabox'
+ command = ['github_changelog_generator']
+ if args.token:
+ command.append('--token')
+ command.append(args.token)
+
+ command.append(repo_name)
+ execute(command, cwd=os.getcwd())
+
+
def main():
parser = argparse.ArgumentParser(prog="ib")
cmd_parser = parser.add_subparsers()
@@ -207,6 +218,14 @@ def main():
services_kill_parser.set_defaults(func=services_kill)
services_kill_parser.add_argument("service_name", nargs="?", type=str, help="Service name")
+ # Github changelog
+ changelog = cmd_parser.add_parser('changelog')
+ sub_changelog = changelog.add_subparsers()
+
+ create_changelog_parser = sub_changelog.add_parser('create')
+ create_changelog_parser.set_defaults(func=changelog_create)
+ create_changelog_parser.add_argument("--token", default='')
+
args = parser.parse_args()
args.func(args)
