Created
August 19, 2019 13:12
-
-
Save MathiasSeguy-Android2EE/6d6e923d904a9985e7553d2235bb52a2 to your computer and use it in GitHub Desktop.
Github: Find if a repo exists using python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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