From 50099bcad6b5ed4c836e7e3f99259fd7a9998649 Mon Sep 17 00:00:00 2001 From: Alejandro Mataloni Date: Thu, 28 May 2015 16:38:52 -0300 Subject: [PATCH] [#3] use new variable as label to create branches --- lib/assisted_workflow/cli.rb | 3 ++- lib/assisted_workflow/templates/awconfig.global.tt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/assisted_workflow/cli.rb b/lib/assisted_workflow/cli.rb index 8fe0756..8d22ca9 100644 --- a/lib/assisted_workflow/cli.rb +++ b/lib/assisted_workflow/cli.rb @@ -28,6 +28,7 @@ def setup c << "$ aw config pivotal.fullname='Your Pivotal User Name' --global" c << "$ aw config pivotal.token=MYPIVOTALTOKEN --global" c << "$ aw config github.token=MYGITHUBOAUTHTOKEN --global" + c << "$ aw config branch_username='Username for branch names' --global" c << "$ aw config pivotal.project_id=00001" end end @@ -45,7 +46,7 @@ def start(story_id=nil) else tracker.start_story(story, :estimate => options[:estimate]) out.print_story story - git.create_story_branch(story, github.username) + git.create_story_branch(story, configuration[:branch_username]) out.next_command "after commiting your changes, submit a pull request using:", "$ aw submit" end end diff --git a/lib/assisted_workflow/templates/awconfig.global.tt b/lib/assisted_workflow/templates/awconfig.global.tt index d7dfa70..ceaea61 100644 --- a/lib/assisted_workflow/templates/awconfig.global.tt +++ b/lib/assisted_workflow/templates/awconfig.global.tt @@ -4,4 +4,5 @@ pivotal: fullname: token: github: - token: \ No newline at end of file + token: +branch_username: