Program to sort starred repositories.
-
In GitHub, go to Settings / Developer Settings / Personal access tokens / Tokens (classic);
-
Click "Generate new token" and "Generate new token (classic)";
Tip
Or simply click here 😉
-
In the "Note" input, give your token a name.
-
Check the "public_repo" scope;
-
Scroll down the page and click "Generate token";
-
Copy the token code.
- Clone the repository:
git clone https://github.com/RichardSouzza/SortStars- Install the dependencies:
npm i- Create an env file containing your token:
echo USER_TOKEN=your_token_here > .env- Sort your stars!
node .The token you provided may be incorrect.
GitHub handles star requests asynchronously, which can sometimes lead to one repository being starred before another.
To fix this, simply increase the delay time.