Skip to content

Commit 5db7186

Browse files
committed
Merge branch 'contribute_action' of https://github.com/parteekcoder/concore into contribute_action
2 parents 63b9475 + 415452f commit 5db7186

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

contribute.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7979
def 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

9494
def 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)
135135
except 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)
147147
except 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

Comments
 (0)