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

Add support for BitBucket repositories #40

Open
obensonne opened this issue Nov 29, 2013 · 7 comments
Open

Add support for BitBucket repositories #40

obensonne opened this issue Nov 29, 2013 · 7 comments

Comments

@obensonne
Copy link
Contributor

Generator projects primarily hosted at BitBucket would benefit from extracting follower and fork stats not only from GitHub but also from BitBucket. For instance poole has more followers and forks at BitBucket.

@balupton
Copy link
Member

Sweet. The place to get started would be either on the website repo https://github.com/bevry/staticsitegenerators or on https://github.com/bevry/getrepos

@dertuxmalwieder
Copy link
Collaborator

@dertuxmalwieder
Copy link
Collaborator

Seems to be there now but broken, see #281

@balupton
Copy link
Member

The work now for this is ready. So any pull requests for this would be great.

@balupton
Copy link
Member

balupton commented Feb 22, 2017

So if someone wants to go about this, the work needed is to update https://github.com/bevry/getrepos for bitbucket support.

However, I'm inclined to drop getrepos in favour of a https://github.com/chainyjs/chainy/wiki approach

Okay, took a look, adding this stuff to getrepos should be fairly straightforward. requestRepo would be expanded out to be requestRepo that supports all the different repo types, and then requestRepoFromGitHub, requestRepoFromGitLab, requestRepoFromBitBucket etc.

Alternative would also be to:

  • getrepos provides a get repo, get repos from users, get repos from search API that works for all repo sources
  • getrepos then forwards that API layer the data onto adapters that have the same api interface implemented, that the above layer interacts with
  • the adapters can just be different files within the getrepos package

@balupton
Copy link
Member

actually, I need to rewrite the code surrounding getrepos, getcontributors and fellow - so best to hold this off

@dertuxmalwieder
Copy link
Collaborator

That sucks. But thank you for the status update!

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

3 participants