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
Post a Comment