Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Extract All commits from and dev or master branch with in repository #157

Open
dixitgargi opened this issue Jun 5, 2020 · 2 comments

Comments

@dixitgargi
Copy link

I am new to stashy -python api.
My objective is to extract data from bitbucket.
I am successfully able to extrat project list by using:
projects = self.bitBucket.projects.list() print("Project List Fetched:", len(projects)) for project in projects: print(project) print(project.get('key'))
Also able to extract repository list per project by using:
projects = self.bitBucket.projects.list() print("Project List Fetched:", len(projects)) for project in projects: repository = self.bitBucket.projects[project['key']].repos.list()

Now I need to extract commit details (i.e. hash, date, commit message) from development or master branch from all repositories available.

Can you please help me out to achieve my objective

@dixitgargi
Copy link
Author

Hi There Any one looked into?

@avoidik
Copy link

avoidik commented Jul 12, 2020

you have list of projects, commits should be attached to a project's repo

/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants