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

Find and store the default branch for Bitbucket repositories #1172

Closed
andrew opened this issue Feb 16, 2017 · 0 comments
Closed

Find and store the default branch for Bitbucket repositories #1172

andrew opened this issue Feb 16, 2017 · 0 comments

Comments

@andrew
Copy link
Contributor

andrew commented Feb 16, 2017

The Bitbucket API doesn't currently tell you what the default branch is for a repository, this makes finding readmes, dependencies and contributors much more difficult.

Bitbucket say it's on their radar but a few months out, for now we can potentially scrape the branches html and look for the "main branch" label, for example: https://bitbucket.org/ged/ruby-pg/branches/

screen shot 2017-02-16 at 10 58 26 am

@andrew andrew self-assigned this Feb 21, 2017
@andrew andrew closed this as completed in 4fc894b Feb 23, 2017
andrew added a commit that referenced this issue Feb 23, 2017
* master:
  Scrape bitbucket site for default branch, fixes #1172
@andrew andrew removed their assignment Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant