You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://example.com/rest/api/1.0/repos/{repoSlug}/branches is not a supported API endpoint. The only way I can see it possible for you to do what you want is to use the http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/branches endpoint.
for project in stash.projects:
for repo in stash.projects[project['key']].repos:
pp.pprint(repo)
pp.pprint(stash.projects[project['key']].repos[repo['slug']].get_all_branches(items=5))
sys.exit("done")
This will iterate over repos within each project. It will also treat each user as a 'project'. That is, the endpoint http://example.com/rest/api/1.0/projects/~{userSlug}/repos/{repositorySlug}/branches is used to iterate over user repositories.
I'm having difficulty in getting a list of branch names for a given repo.
TypeError: the JSON object must be str, not 'bytes'
<generator object ResourceBase.paginate at 0x110b18a98>
What am I doing wrong?
The text was updated successfully, but these errors were encountered: