GithubHelp home page GithubHelp logo

abhijithvijayan / stargazed Goto Github PK

View Code? Open in Web Editor NEW
460.0 8.0 30.0 281 KB

๐Ÿ“‹ Creating your own Awesome List of GitHub stars!

Home Page: https://github.com/abhijithvijayan/awesome-stars

License: MIT License

JavaScript 100.00%
nodejs github-stars cli-app cli app javascript

stargazed's Introduction

stargazed

Creating your own Awesome List of GitHub Stars!

https://github.com/abhijithvijayan/awesome-stars

๐Ÿ™‹โ€โ™‚๏ธ Made by @abhijithvijayan

Donate: PayPal, Patreon

Buy Me a Coffee


โค๏ธ it? โญ๏ธ it on GitHub or Tweet about it.

Table of Contents

Installation

Ensure you have Node.js 10 or later installed. Then run the following:

npx stargazed [options]

Usage

$ stargazed --help

  Creating your own Awesome List of GitHub Stars!

  Options
    -u, --username TEXT    GitHub username
    -t, --token TEXT       GitHub token
    -s, --sort             sort by language
    -r, --repository TEXT  repository name
    -m, --message TEXT     commit message
    -w, --workflow         Setup GitHub Actions for Daily AutoUpdate
    -v, --version          Show the version and exit with code 0

  Examples
    $ stargazed --username abhijithvijayan --token "GITHUB-TOKEN" --repository "awesome-stars"  --sort --workflow
    $ stargazed -u "abhijithvijayan" -r "awesome-stars" -t "GITHUB-TOKEN" -m "COMMIT_MESSAGE" -s

Demo

FAQs

Generate new token

Goto Personal access tokens

Why do I need a token

  • For unauthenticated requests, the rate limit is 60 requests per hour. see Rate Limiting
  • The token must be passed together when you want to automatically create the repository.

How can I automate the process after initial run

Use -w, --workflow flag to set up GitHub workflow that updates the repo at 00:30 everyday
stargazed -u "abhijithvijayan" -r "awesome-stars" -t "GITHUB-TOKEN" -s -w

Issues

Looking to contribute? Look for the Good First Issue label.

See contribution guidelines

๐Ÿ› Bugs

Please file an issue here for bugs, missing documentation, or unexpected behavior.

See Bugs

Linting Config

License

MIT ยฉ Abhijith Vijayan

stargazed's People

Contributors

abhijithvijayan avatar anihadh avatar bhavesh27 avatar c3-tko avatar cchitsiang avatar dependabot-preview[bot] avatar digikin avatar franciscofsales avatar harisspahija avatar jacobmgevans avatar josephting avatar kodiakhq[bot] avatar kwaimind avatar lindgr3n avatar mika-f avatar renjithgr avatar theashraf avatar vintagesucks avatar ziggoto 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  avatar  avatar  avatar  avatar  avatar

stargazed's Issues

[Bug] Bundle size too high

The README.md file generated in development somehow is included in the npm pack ed file, which increases the build size.

This file is ignored using .gitignore yet it is attached with the publishing package

Disable linting the markdown file (template.md)

The markdown linter, applies linting automatically on the template.md file when applied a change and saved.

The VScode I use, really messes this up and output produced by CLI is then ruined.

If there is any config that disables this auto lint, it might be useful.

Set up CI

Set up CI for running tests & also running CLI on different Node.js LTS versions

Preferred Travis

Features

Currently only the list is being fetched with the -u flag.

The rest of the flags does nothing for now.

They are to be worked on soon enough.

ADD contributing guidelines

Checklist

Add contributing guidelines

Expected Behavior

make sure to ask to obey by the code of conduct file #17
and to have good behaviour to other contributors

add issue template

a general useful template
that has comments inside it saying to attach screenshots possible and also to check if such issue exists before creating

Cannot read property 'login' of null error

I've been using this tool for past 2 months, but from few weeks, it's not working, I've been trying to debug things, but not able to figure it out the exact issue that's causing, would love to get it solved by you guys! Thanks! and I'm attaching the screenshot.

Checklist

  • I checked that this is not an existing issue
  • I gave clear steps to reproduce this issue

repo - https://github.com/abhisheknaiidu/nads

Screenshot 2021-02-08 at 4 14 12 PM

Code Refactoring

Complexity of some functions are way over the best and top.

As a solution to that, code splitting is necessary to tackle this.

add unit tests

Checklist

  • Initial barebone
  • Add unit tests for the commands offered by the cli

add extension to eslint config file

As eslint recommends to use an extension to the config file used, renaming .eslintrc to .eslintrc.json seems a good idea.

Please comment here first and then proceed to PR.

Swap the order

To make it look like

sl. No | Name | Description | Author | Stars

GitHub Action documentation

Checklist

  • I checked that this is not an existing issue
  • I gave clear steps to reproduce this issue
  • I formatted all code samples correctly (if relevant)

Expected Behavior

A command like

stargazed --username almereyda --token of_sorts --sort --repository awesome-stars -w

sets up a GitHub repository, if not existing, and Action for updating the repository.

Current Behavior

  1. Running the command without the repository existing does not create it with an initial commit and does not set the GitHub Action.
  2. Running the command for a manually created repository does not create a commit and does not create a visible action in https://github.com/almereyda/awesome-stars/actions/new

Possible Solution

stargazed is able to fetch the repository's configuration If the repository does not yet exist, it is being created and set up with an initial commit plus GitHub Action. (Note the -w flag.)

Steps to Reproduce

  1. Run the stargazed command above with your username and your personal access token.
  2. Review the GitHub Actions

Context (Environment)

This is a Fedora 30, Node 10 environment.

Possible Implementation

It could be nice to have a CLI flag that can read the repository configuration and update on the status of an eventual integration.

some content hrefs are buggy

Try

stargazed -u "phanirithvij"

- [DIGITAL Command Language](#digital-command language) is the output
The expected output should be

- [DIGITAL Command Language](#digital-command-language)

Pipe chars don't get escaped (breaking markdown table)

Checklist

  • I checked that this is not an existing issue
  • I gave clear steps to reproduce this issue
  • I formatted all code samples correctly (if relevant)

Expected Behavior

The pipe (|) gets escaped.

Current Behavior

The pipe (|) is not escaped, breaking the markdown of the table row.

Possible Solution

Escape the pipe

Steps to Reproduce

Live example (anti-xss):

grafik

Context

Original description of voku/anti-xss:

grafik

Detailed Description

Escape the pipe (|) to prevent it from breaking the markdown.

Possible Implementation

Token Permission/scopes

Need List of Scopes that are required for TOKEN to make the stargazed CLI work like charm?

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.