-
Notifications
You must be signed in to change notification settings - Fork 3
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 BitBucket support #37
base: master
Are you sure you want to change the base?
Conversation
oops. had it installed locally. must of forgot to `--save`.
nice! |
@@ -23,6 +22,9 @@ var zlib = require('zlib'); | |||
var fs = require('co-fs'); | |||
var url = require('url'); | |||
var join = path.join; | |||
var github = require('./github'); | |||
|
|||
var auth = github.auth; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I wonder if auth should be a function, just like resolve
and tarball
. what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, that makes sense for consistency sake.
thanks @stephenmathieson! I think this is getting pretty close. I'm not sure I like how Maybe this is just the way the problem ends up unfolding, but I'm not quite sold yet on this implementation as it stands. |
So basically right now the API looks like: provider.auth
provider.tarball(repo, ref)
provider.resolve(repo, ref, fn) I think if this is only going to work for duo, we might be able to get away with: provider.auth()
provider.tarball(repo, ref)
*provider.resolve(repo, ref) but even then, i don't like how one function is doing pretty much all the work... could we just have |
yes and no. the resolve stuff is the majority of the work, but the tarball endpoints will differ from provider-to-provider:
yeah, i agree. i'm already calling |
@matthewmueller pushed some new commits and:
|
Is there any reason this isn't being merged? (don't want it to grow stale, it is a nice step forward) |
@dominicbarnes iirc, stability/ready for being open sourced > bitbucket |
Yah, I want to merge this, but I'm not sure now is the right time :-/ |
After Duo is out and we're more stable (travis, coveralls, etc.) I'll feel more comfortable introducing big new features. |
any progress on that? :) |
I should have merged this at the time, just came right as we were gearing up to release. I'd be down to merge this now if we can update it. |
@matthewmueller i've got a private fork with bitbucket support, but it's severely out of date with everything. i'll try to get something together soonish though. |
is the proposed api here still acceptable btw? |
+1 from me, would really like to see a big step forward like this |
this is really just to get a code review. ideally, we'd move the provider modules into their own respective repos, but i didn't want to start creating
duo-*
without some feedback.