python - How to set path for PyGithub method? -


i'm working pygithub basic access own github repo. methods require "path" , i'm not sure is. parameters use in .get_contents() function? simple example:

    github import github     g = github("***","***")     repo = g.get_user().get_repo("my_projects")     contents = repo.get_contents() 

you need pass following arguments:

path - string - content path.

ref - string - name of commit/branch/tag. default: repository’s default branch (usually master)

e.g - repo.get_contents('config/version.rb','development')

see more here


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -