thank-you-stars: Give your dependencies stars on GitHub!

[ bsd3, library, program, utils ] [ Propose Tags ]

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.


[Skip to Readme]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.2.0, 0.3.0, 1.0.0, 1.0.1
Dependencies aeson (>=1.5.6.0), base (>=4.7 && <5), bytestring, Cabal, containers, directory, filepath, hackage-db (>=2.1.2), req (>=3.9.0), split (>=0.2.3.4), text, thank-you-stars [details]
License BSD-3-Clause
Copyright Copyright (C) 2022 Yuto Takahashi
Author Yuto Takahashi <ytaka23dev@gmail.com>
Maintainer Yuto Takahashi <ytaka23dev@gmail.com>
Category Utils
Home page https://github.com/y-taka-23/thank-you-stars
Uploaded by y_taka_23 at 2022-02-05T08:35:44Z
Distributions NixOS:1.0.1
Executables thank-you-stars
Downloads 1815 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-02-05 [all 1 reports]

Readme for thank-you-stars-1.0.1

[back to package description]

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.