@@ -28,8 +28,7 @@ def run(token, owner, repository, branch, default):
2828
2929 if len (shas .keys ()) == 1 :
3030 reference = [* shas ][0 ]
31- print (f"⚙️ There is only one branch available on the repository." )
32- print (f"⚙️ Therefore, branch \033 [36m{ reference } \033 [0m will be used as reference." )
31+ print (f"⚙️ There is only one branch available on the repository: \033 [36m{ reference } \033 [0m" )
3332
3433 # If more than one branch on the repo, ask which one to use as reference
3534 else :
@@ -42,7 +41,7 @@ def run(token, owner, repository, branch, default):
4241 answers = inquirer .prompt (questions )
4342 reference = answers ["reference" ]
4443
45- print (f"⚙️ Creating new \033 [36m{ branch } \033 [0m branch based on \033 [36m{ reference } \033 [0m branch..." )
44+ print (f"⚙️ Creating \033 [36m{ branch } \033 [0m branch based on \033 [36m{ reference } \033 [0m branch..." )
4645
4746 data = {}
4847 data ["ref" ] = f"refs/heads/{ branch } "
@@ -60,7 +59,7 @@ def run(token, owner, repository, branch, default):
6059 print (f"✅ Branch \033 [36m{ branch } \033 [0m successfully created on { owner } 's \033 [36m{ repository } \033 [0m repository" )
6160
6261 if default == "yes" :
63- print ("⚙️ Updating default branch..." )
62+ print (f "⚙️ Updating repository default branch to \033 [36m { branch } \033 [0m ..." )
6463 input_flag_cmd = f"rit github update default-branch --rit_repo_owner={ owner } --rit_git_repo={ repository } --rit_repo_branch={ branch } "
6564 os .system (f"{ input_flag_cmd } " )
6665
0 commit comments