44
55# Intializing the Variables
66# Hashed token
7- BOT_TOKEN = 'Z2l0aHViX3BhdF8xMUFYS0pGVFkwUWVWZ3AzbkpkWk8yX3BOc1VncDFIVDMwZVNXcHhBNm9acHhMaGZGdU5CdE85TGpqdXF1UWRRNzI2S01aUk5HRUNGanFWNDZi '
8- REPO_NAME = 'concore' #repo name
7+ BOT_TOKEN = 'Z2l0aHViX3BhdF8xMUFYS0pGVFkwd2xwT0dmYldFOTBBXzN3Nkx2THpiaUFKek5pTDdqNlpLUzVwUUpoTlJWR3dtNnM0NWNDa0RmWTJaTTZLSUpHRHhERlhrZlJS '
8+ REPO_NAME = 'concore-studies ' #repo name
99OWNER_NAME = 'parteekcoder123' #bot account name
1010STUDY_NAME = sys .argv [1 ]
1111STUDY_NAME_PATH = sys .argv [2 ]
1212AUTHOR_NAME = sys .argv [3 ]
1313BRANCH_NAME = sys .argv [4 ]
1414PR_TITLE = sys .argv [5 ]
1515PR_BODY = sys .argv [6 ]
16- UPSTREAM_OWNER = 'parteekcoder' # upstream to which examples should be contributed
17-
16+ UPSTREAM_OWNER = 'ControlCore-Project' # upstream to which examples should be contributed
1817
1918# Defining Functions
2019def checkInputValidity ():
@@ -77,9 +76,9 @@ def fetchUpstream(repo,base_sha,branch):
7776def runWorkflow (repo ,upstream_repo ):
7877 openPR = anyOpenPR (upstream_repo )
7978 if openPR == None :
80- workflow_runned = repo .get_workflow (id_or_name = "pull_request.yml" ).create_dispatch (ref = BRANCH_NAME ,inputs = {'title' :PR_TITLE ,'body' :PR_BODY ,'upstreamRepo' :upstream_repo ,'botRepo' :OWNER_NAME ,'repo' :REPO_NAME })
79+ workflow_runned = repo .get_workflow (id_or_name = "pull_request.yml" ).create_dispatch (ref = BRANCH_NAME ,inputs = {'title' :PR_TITLE ,'body' :PR_BODY ,'upstreamRepo' :UPSTREAM_OWNER ,'botRepo' :OWNER_NAME ,'repo' :REPO_NAME })
8180 if not workflow_runned :
82- print ("Some Error Occured .Please try after some time" )
81+ print ("Some error occured .Please try after some time" )
8382 exit (0 )
8483 else :
8584 printPRStatus (upstream_repo )
@@ -105,10 +104,10 @@ def isImageFile(filename):
105104 return file_extension .lower () in image_extensions
106105
107106# Encode Github Token
108- def encode_token (token ):
109- encoded_bytes = base64 .b64encode (token .encode ('utf-8' ))
110- encoded_token = encoded_bytes .decode ('utf-8' )
111- return encoded_token
107+ # def encode_token(token):
108+ # encoded_bytes = base64.b64encode(token.encode('utf-8'))
109+ # encoded_token = encoded_bytes.decode('utf-8')
110+ # return encoded_token
112111
113112
114113# Decode Github Token
0 commit comments