File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 3131# g = Github("user", "password")
3232# os.system('.\ssh_agent_init.sh')
3333# or using an access token
34- githubAccessToken = ''
35- githubActorName = ''
36- githubActorEMail = ''
3734# First create a Github instance:
3835g = Github (githubAccessToken )
3936actor = Actor (githubActorName , githubActorEMail )
4542
4643def listGitHubRepo ():
4744 # Then play with your Github objects:
48- print (BLUE + "List of repo on GitHub :" )
49- for repo in g .get_user ().get_repos ():
50- print (BLUE + repo .name )
51-
45+ print (BLUE + "List of repo on GitHub :" + str (g .get_user ()))
46+ try :
47+ for repo in g .get_user ().get_repos ():
48+ print (BLUE + repo .name )
49+ except Exception as e :
50+ print (e )
5251
5352def isGitHubRepoExisting (name ):
5453 # Then play with your Github objects:
@@ -165,4 +164,5 @@ def gitCreateAndPush(repository,repoDescription):
165164 sh_command .runGitPushInCommandLine (repository )
166165
167166
168- # print('test')
167+ # print('test')
168+ # listGitHubRepo()
You can’t perform that action at this time.
0 commit comments