Skip to content

matsubara0507/thank-you-stars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thank-you-stars

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

Setup

Add thank_you_stars to your list of dependencies in mix.exs:

def deps do
  [
    {:thank_you_stars, "~> 0.1.0", only: :dev}
  ]
end

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 mix thank_you_stars in the root directory of your project. Then it scans the mix.deps and scrape the Hex.pm, stars your dependent libraries if they are hosted on GitHub.

$ mix thank_you_stars
Starred! https://github.com/antonmi/espec
Starred! https://github.com/elixir-lang/ex_doc
Starred! https://github.com/edgurgel/httpoison

Acknowledgement

This tool is greatly inspired by teppeis's JavaScript implementation and y-taka-23's Haskell implementation.

About

Give your dependencies stars on GitHub!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages