lib/bard/cli/new.rb in bard-1.3.9 vs lib/bard/cli/new.rb in bard-1.4.0

- old
+ new

@@ -38,18 +38,21 @@ ' BASH end def push_to_github - Bard::Github.new(project_name).create_repo + api = Bard::Github.new(project_name) + api.create_repo run! <<~BASH cd ../#{project_name} git init -b master git add -A git commit -m"initial commit." git remote add origin git@github.com:botandrosedesign/#{project_name} git push -u origin master BASH + api.add_master_key File.read("../#{project_name}/config/master.key") + api.add_master_branch_protection end def stage run! <<~BASH cd ../#{project_name}