Skip to content

Instantly share code, notes, and snippets.

@MathiasSeguy-Android2EE
Created August 19, 2019 13:12
Show Gist options
  • Save MathiasSeguy-Android2EE/6d6e923d904a9985e7553d2235bb52a2 to your computer and use it in GitHub Desktop.
Save MathiasSeguy-Android2EE/6d6e923d904a9985e7553d2235bb52a2 to your computer and use it in GitHub Desktop.
Github: Find if a repo exists using python
def isGitHubRepoExisting(name):
# Then play with your Github objects:
for repo in g.get_user().get_repos():
if(repo.name in REPO_NAME):
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment