Skip to content

Commit

Permalink
Temporary commit files while dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
krashah committed May 23, 2018
1 parent 088f316 commit c1dbca0
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ def print_info(print_message):

git_cmd = git.cmd.Git(".")
if bool_test:
git_url="@api.github.com/repos/krashah/practice"
org_name = input("Enter organisation name of repo: ")
#Checking if nothing is entered then ask user to enter again
while (not org_name.strip()):
org_name = input("Enter Organisation name of Repo: ")
repo_name = input("Enter name of repo: ")
#Checking if nothing is entered then ask user to enter again
while (not repo_name.strip()):
repo_name = input("Enter name of Repo: ")
git_url="@api.github.com/repos/"+org_name+"/"+repo_name+""
else:
git_url="@api.github.com/repos/devonfw/tools-cobigen"
pl_url="https://devon.s2-eu.capgemini.com/"
Expand All @@ -91,7 +99,7 @@ def print_info(print_message):
user = g.get_user()

if bool_test:
rep = user.get_repo("practice")
rep = user.get_repo(repo_name)
else:
org = g.get_organization("devonfw")
rep = org.get_repo("tools-cobigen")
Expand Down Expand Up @@ -223,15 +231,12 @@ def check_branch_validity(branch_name):

############################Step 1.1.1
# Enter Branch Name-mandatory
if bool_test:
branch_name="dev_htmlmerger"
else:
branch_name = input("Enter branch name: ")
branch_name = input("Enter branch name: ")

#Checking if nothing is entered then ask user to enter again
while (branch_name.strip() and not check_branch_validity(branch_name)):
print_info("You have entered branch which doesn't exists, Please enter valid branch name.");
branch_name = input("Enter branch name: ")
#Checking if nothing is entered then ask user to enter again
while (branch_name.strip() and not check_branch_validity(branch_name)):
print_info("You have entered branch which doesn't exists, Please enter valid branch name.");
branch_name = input("Enter branch name: ")

build_folder_name=get_build_folder(branch_name)

Expand Down Expand Up @@ -581,7 +586,7 @@ def create_github_issue():
print_info("Milestone >>", release_milestone.title, "<< is already closed, please check.")
else:
release_milestone.edit(release_milestone.title, "closed", release_milestone.description)
print_info("New status of Milestone >>", release_milestone.title, "<< is:", release_milestone.state )
print_info("New status of Milestone >>" +release_milestone.title+ "<< is:"+ release_milestone.state )

#############################Step 11.2
'''create a new release'''
Expand Down

0 comments on commit c1dbca0

Please sign in to comment.