@@ -68,12 +68,12 @@ def runWorkflow(repo,upstream_repo):
6868 if openPR == None :
6969 workflow_runned = repo .get_workflow (id_or_name = "pull_request.yml" ).create_dispatch (ref = BRANCH_NAME ,inputs = {'title' :f"[BOT]: { PR_TITLE } " ,'body' :PR_BODY ,'upstreamRepo' :UPSTREAM_ACCOUNT ,'botRepo' :BOT_ACCOUNT ,'repo' :REPO_NAME })
7070 if not workflow_runned :
71- print ("Some error occured.Please try after some time" )
71+ print ("Some error occured. Please try after some time" )
7272 exit (0 )
7373 else :
7474 printPRStatus (upstream_repo )
7575 else :
76- print ("Successfully uploaded all files,your example is in waiting.Please wait for us to accept it." ,end = "" )
76+ print ("Successfully uploaded all files, your example is in waiting.Please wait for us to accept it." ,end = "" )
7777 printPR (openPR )
7878
7979def printPRStatus (upstream_repo ):
@@ -88,7 +88,7 @@ def printPRStatus(upstream_repo):
8888 time .sleep (4 )
8989 print (f'Check your example here https://github.com/{ UPSTREAM_ACCOUNT } /{ REPO_NAME } /pulls/{ max_num + 1 } ' ,end = "" )
9090 except Exception as e :
91- print ("Your example successfully uploaded but unable to fetch status.Please try again" )
91+ print ("Your example successfully uploaded but unable to fetch status. Please try again" )
9292
9393
9494def isImageFile (filename ):
@@ -133,7 +133,7 @@ def decode_token(encoded_token):
133133 DIR_PATH = DIR_PATH .replace (" " ,"_" )
134134 is_present = any (branch .name == BRANCH_NAME for branch in branches )
135135except Exception as e :
136- print ("Some error occured. Authentication failed" ,end = "" )
136+ print ("Authentication failed" , end = "" )
137137 exit (0 )
138138
139139
@@ -145,7 +145,7 @@ def decode_token(encoded_token):
145145 # Get current branch
146146 branch = repo .get_branch (branch = BRANCH_NAME )
147147except Exception as e :
148- print ("Not able to create study for you.Please try again after some time" ,end = "" )
148+ print ("Not able to create study for you. Please try again after some time" , end = "" )
149149 exit (0 )
150150
151151
0 commit comments