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

Bitbucket Support #65

Closed
willsr opened this issue May 27, 2015 · 13 comments
Closed

Bitbucket Support #65

willsr opened this issue May 27, 2015 · 13 comments

Comments

@willsr
Copy link

willsr commented May 27, 2015

Is there any merit in adding support for BitBucket pull requests into Buildasaur?

@czechboy0
Copy link
Member

Depends, is there demand for it? I don't know how different BitBucket pull requests are to GitHub's, but if I see there might be enough interested people, it is something I would consider.

Or even better would be if someone who has a bit of knowledge of how people use BitBucket vs GitHub did it.

@jaharabari
Copy link

I am also using BitBucket. if possible please add support for bitbucket too.

Thanks

@czechboy0 czechboy0 changed the title Bitbucket support Bitbucket Support Aug 6, 2015
@atljeremy
Copy link

👍 for bitbucket support

@czechboy0
Copy link
Member

It's starting to look like Bitbucket might be the second source server we'll support.
Docs: https://confluence.atlassian.com/bitbucket/version-2-423626329.html

@valeriomazzeo
Copy link

Definitely bitbucket and GitLab in the list

@dlbuckley
Copy link

Bitbucket support would be great.

@yakubbaev
Copy link

+1

1 similar comment
@n0quarter
Copy link

+1

@czechboy0
Copy link
Member

Okay, work on this has started. I'd appreciate if you all could write a couple of sentences about how you use the BitBucket PR workflow, how you'd compare it with GitHub's (if you've used both) and which features are the most important ones for you. I haven't personally used BB's PRs yet, so I'm learning as I go.

I'm investigating the API at the moment, but work in #185 is pretty much finished, so check out the branch hd/bitbucket if you're curious about the progress.

@czechboy0
Copy link
Member

Okay, from initial research I have a couple of more unknowns and findings:

  • need to find how to do conditional requests, which were recently implemented for GitHub (Request/response caching #62), otherwise we'd be running out of request allowance
  • find out the actual rate limit, the docs are confusing
  • find how to programatically detect the rate limit to be able to gradually slow down if we approach it (not yet implemented but would be considered if the rate limit is low)
  • find out whether using both v1 and v2 of the API is not going to be a problem, unfortunately v2 is not yet feature complete, but it's much nicer to use for available calls
    • Should be fine.
  • find out whether there's a native PR/commit/branch build status like on GitHub that would nicely show the build/test status of the code (otherwise we'd have to rely purely on Buildasaur's comments, which is not as pretty)
  • find out the easiest but secure authentication method (Basic auth with a token like GitHub maybe? OAuth?)
  • have xcodeproj parsing code recognize BitBucket URLs (both HTTPS and SSH) in addition to GitHub
  • add BB-specific error object parsing and pagination support (different to GitHub) described in https://confluence.atlassian.com/bitbucket/version-2-423626329.html

I looked at the API and most things should be easy to implement. Everything has been abstracted away so we only need to implement the communication with the API and all the syncing logic will be reused from the code managing GitHub projects.

If any of you have any comments/answers to the questions I have above, I'd be grateful for any help. At this stage I'll spend much more time on the research than on the implementation (that will be easy thanks to #185 and should open up the path to more server types that use PRs, like GitLab etc.).

@czechboy0 czechboy0 added this to the v1.0 - Iris milestone Jan 27, 2016
@czechboy0
Copy link
Member

Progress tracked in #217, for those who want to try an early build, let me know. I'll create a very early alpha for you manually. Everything seems to be working nicely, it's mostly just testing now and final polish.

@czechboy0
Copy link
Member

Fixed by #217.

@czechboy0
Copy link
Member

All you BitBucket people, the first beta is out here: https://github.com/czechboy0/Buildasaur/releases/tag/v1.0.0-b1
Please give it a try and provide feedback, thanks! (Ideally start syncing your bitbucket repo and give it a good stress test)

Also, you won't need to manually install new versions anymore, because Buildasaur will be able to autoupdate from now on.

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

8 participants