Coder Social home page Coder Social logo

Accessing bitbucket private repos about ghub HOT 1 CLOSED

magit avatar magit commented on June 20, 2024
Accessing bitbucket private repos

from ghub.

Comments (1)

tarsius avatar tarsius commented on June 20, 2024

The users/{username}/repositories endpoint is documented to return private repos, but it doesn't for me, at least not with the app password I created.

That's the only thing I tried and what I want to use because I can use something equivalent with all the other forges.

But I don't want to shoot the messenger. 😃 Thanks for letting me know.

If I call

(buck-get "repositories/" '((role . "contributor") (q . "scm=\"git\"")) :unpaginate t :auth 'basic)

and give an app password when prompted I get back all the git repos I have write access to including > private repos.

However

(buck-get "repositories/" '((role . "contributor") (q . "scm=\"git\"")) :unpaginate t)

does not work. It does not even return public repositories. I cannot see any legitimate reason for why this should only work when using basic authentication but not when using a token, so that just reinforces my impression that the whole thing is buggy and you have to get lucky for the thing you want to do to actually work.

So it looks like with enough trial and error and then jumping through some hoops one can get useful information out of the bitbucket api, but I am yet to implement basic support for three other, well behaved, forge apis in the new forge package, so I will safe the pain of dealing with bitbucket for a future that may or may not ever come. 😜

from ghub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.