GithubHelp home page GithubHelp logo

Comments (8)

fregante avatar fregante commented on August 19, 2024 2

Link: https://github.com/refined-github/refined-github/blob/3547c9bc0e60443dafe06752bc94e9e5b73f8d55/source/github-helpers/index.ts#L37

Things I'm not excited about:

  • how transient and imperfect each of those API is
  • documenting them and releasing breaking versions more often than this module requires
  • external contributions (or lack thereof)
  • the slowing of RG’s development due to having them externally and having to consider third parties
  • having to also extract every internal function that those helpers use, further slowing RG’s development

I wouldn't be totally opposed to publishing a "gh extensions utils" package but I'd probably suggest using npm install refined-github/refined-github in order to access those files directly instead.

from github-url-detection.

fregante avatar fregante commented on August 19, 2024 2

I'll add, even if we go to the trouble of doing all of that, it doesn't mean it actually helps that many people. See how many repos use this very simple, very old package:

https://github.com/refined-github/github-url-detection/network/dependents

Here's the total of 2 non-fork non-ghosttown extensions that use it:

I'd argue we didn't even need to extract github-url-detection. 😃 The only reason it's still great to have is that it makes it easier to test it and work on it.

from github-url-detection.

yakov116 avatar yakov116 commented on August 19, 2024 1

I think we can extract it to be its own module, I like how simple this one is no need to complicated it.

@refined-github/maintainers thoughts?

from github-url-detection.

kidonng avatar kidonng commented on August 19, 2024 1

To be fair, I think most github-helpers are useful on their own1, like get-user-avatar. But let's not overcomplicate things 😅 this issue only considers branch name related stuff.

Footnotes

  1. maybe one day I extract them to modules myself, that's MIT for you

from github-url-detection.

yakov116 avatar yakov116 commented on August 19, 2024 1

The only reason it's still great to have is that it makes it easier to test it and work on it.

Exactly why we extracted, the tests took too much time.

from github-url-detection.

kidonng avatar kidonng commented on August 19, 2024 1

@fregante Really good points. I agree it's too much hassle for those simple helpers, I brought up about this one because I think it's an exception:

  • There are projects that could benefit from it
  • It (mostly) fits in this package
  • More people using it, more/faster bugs are found

from github-url-detection.

yakov116 avatar yakov116 commented on August 19, 2024

maybe one day I extract them to modules myself, that's MIT for you ↩

Well be glad to host them. That's refined-github for you 🤪

from github-url-detection.

fregante avatar fregante commented on August 19, 2024

PR welcome to add those two:

  • utils/github-url.ts
  • utils/get-current-committish.ts

from github-url-detection.

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.