Git Product home page Git Product logo

Comments (2)

gregswindle avatar gregswindle commented on May 27, 2024

Bitbucket API access

IMHO, we should go with with got, since:

  1. We're already using got
  2. We can adapt its response (and errors) with existing code

Still unsure about hosted-git-info: need to figure out whether we'll encounter uses cases in which we need to dynamically query based on:

// Psuedocode
const hostedGitInfo = require("hosted-git-info")
let gitHostInfo = hostedGitInfo.fromUrl(repoUrl, opts)
/* info looks like:
{
  type: "github",
  domain: "github.com",
  user: "npm",
  project: "hosted-git-info"
}
*/
// @internal factory method to generate the appropriate API?
readmeInspector.api = apiFactory.create(gitHostInfo)
// => Provides an api instance that readmeInspector can use

If we go the apiFactory direction, we'll need to define an interface for the methods:

getReadme (Octokit.prototype.repos.getReadme)

from readme-inspector.

gregswindle avatar gregswindle commented on May 27, 2024

Iceboxing this since:

  1. Bitbucket has low market-share
  2. GitLab support would be more useful

from readme-inspector.

Related Issues (11)

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.