Giter VIP home page Giter VIP logo

thank-you-stars's Introduction

thank-you-stars

GitHub Actions Hackage

A tool for starring GitHub repositories. It detects dependent libraries which are hosted on GitHub via .cabal files, and stars the repositories all at once.

Setup

The project is managed by Cabal, so you can install it simply:

$ git clone https://github.com/y-taka-23/thank-you-stars.git
$ cd thank-you-stars
$ cabal install

To star GitHub repositories, you have to get your personal access token.

  1. Open https://github.com/settings/tokens and press "Generate new token."
  2. Input the description and check only "public_repo" as a scope.
  3. Save the token as $HOME/.thank-you-stars.json:
{
    "token": "SET_YOUR_TOKEN_HERE"
}

Usage

Run thank-you-stars in the root directory of your project. Then it scans all .cabal files under the current directory and metadata of the packages from the local Hackage DB, stars your dependent libraries if they are hosted on GitHub.

$ thank-you-stars
Starred! https://github.com/NixOS/hackage-db
Starred! https://github.com/byorgey/split
Starred! https://github.com/haskell/aeson
Starred! https://github.com/haskell/bytestring
Starred! https://github.com/haskell/cabal
Starred! https://github.com/haskell/containers
Starred! https://github.com/haskell/directory
Starred! https://github.com/haskell/filepath
Starred! https://github.com/haskell/text
Starred! https://github.com/hspec/hspec
Starred! https://github.com/mrkkrp/req

License

This project is released under the BSD 3-clause license. For more details, see LICENSE file.

Acknowledgement

This tool is greatly inspired by teppeis's JavaScript implementation.

thank-you-stars's People

Contributors

y-taka-23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aiya000

thank-you-stars's Issues

Build error with hackage-db-2.0.1 and Cabal-2.2.0.1

src/Utils/ThankYouStars/Package.hs:15:57: error:
    Module ‘Distribution.Hackage.DB’ does not export ‘Hackage’
   |
15 | import           Distribution.Hackage.DB               (Hackage, readHackage')
   |                                                         ^^^^^^^

src/Utils/ThankYouStars/Package.hs:15:66: error:
    Module ‘Distribution.Hackage.DB’ does not export ‘readHackage'’
   |
15 | import           Distribution.Hackage.DB               (Hackage, readHackage')
   |                                                                  ^^^^^^^^^^^^

src/Utils/ThankYouStars/Package.hs:18:1: error:
    Could not find module ‘Distribution.PackageDescription.Parse’
    Perhaps you meant
      Distribution.PackageDescription.Parsec (from Cabal-2.2.0.1)
      Distribution.PackageDescription.Check (from Cabal-2.2.0.1)
      Distribution.PackageDescription.Quirks (from Cabal-2.2.0.1)
    Use -v to see a list of the files searched for.
   |
18 | import           Distribution.PackageDescription.Parse (readPackageDescription)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Blacklist repositories

Hey, is there a way to blacklist repositories from being starred?

E.g. https://github.com/vincenthz/hs-tls is known to not have mitigated certain timing attacks and is generally very controversial to the point that I don't want to run it in production, advise against its use and don't want it to be starred.

So this isn't really about trolling, but actual concerns.

Cabal file missing

There is no cabal file. Please include one. Hpack is a development tool, not part of a build chain.

release binary

This program could be useful for people who don't have the right haskell toolchain installed. It would make sense to put precompiled binaries in the Github release for those people (also haskellers who don't feel like waiting for the compilation).

It's possible to do it as github actions: https://vrom911.github.io/blog/github-actions-releases

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.