Coder Social home page Coder Social logo

github-tracker's Introduction

GitHub Repo Tracker

Grabs useful information from GitHub.

Language Build

Command Description
repo-stars Provides an ordered list of the top repos on GitHub
repo-issues Provides an ordered list of repos by issues
count-issues Counts the number of issues matching a query

Usage

Make sure you have the Dart SDK installed (https://dart.dev).

Also make sure to grab the dependencies first:

cd path/to/github-tracker
dart pub get

You can get help on the available commands by running:

dart <command>.dart --help

Optionally, you can compile each command to native code by running, for instance:

dart compile exe repo-stars.dart -o repo-stars

repo-stars

The following command gives an ordered list of the top 10 repos on GitHub:

$ dart repo-stars.dart -n 10
  #  Repository             Stars
  1  vuejs/vue             185850
  2  facebook/react        171582
  3  tensorflow/tensorflow 157503
  4  twbs/bootstrap        151884
  5  ohmyzsh/ohmyzsh       130632
  6  flutter/flutter       124736
  7  microsoft/vscode      118892
  8  torvalds/linux        115122
  9  ytdl-org/youtube-dl    97779
 10  d3/d3                  97601

By default, the command excludes "content repos" (those that are primarily non-code, or where the code is primarily documentary rather than generative for a specific app or library target). GitHub has many good examples of this, but they're obviously a different kind of repo. Examples like: freeCodeCamp/freeCodeCamp, EbookFoundation/free-programming-books, kamranahmedse/developer-roadmap and others. This list is manually curated.

You can include content repos to the list with the --include-content-repos switch. For example:

$ dart repo-stars.dart --include-content-repos -n 5
  #  Repository                              Stars
  1  freeCodeCamp/freeCodeCamp              326292
  2  996icu/996.ICU                         257956
  3  EbookFoundation/free-programming-books 196945
  4  vuejs/vue                              185850
  5  jwasham/coding-interview-university    184430

If you'd prefer the data formatted as comma-separated-values, perhaps to append to a file to graph trends over time, you can use the --csv-output switch:

$ dart repo-stars.dart --csv-output -n 5
2021/07/19 09:00:09,1,vuejs/vue,185850
2021/07/19 09:00:09,2,facebook/react,171583
2021/07/19 09:00:09,3,tensorflow/tensorflow,157503
2021/07/19 09:00:09,4,twbs/bootstrap,151884
2021/07/19 09:00:09,5,ohmyzsh/ohmyzsh,130632

count-issues

count-issues returns the count of the number of issues given a repository and Github query at the current time in a comma-delimited format. For example:

$ dart count-issues.dart --repo flutter/flutter --filter is:open,is:issue,label:framework
2021/07/19 09:00:27, 4002

Acknowledgements

Thanks to @csells, @creativecreatorormaybenot and @kf6gpe for various contributions. And thanks to the amazing team of contributors behind the github package, who saved me a ton of work.

github-tracker's People

Contributors

creativecreatorormaybenot avatar csells avatar kf6gpe avatar maheshj01 avatar timsneath 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

github-tracker's Issues

No static getter 'file' declared in class 'FileSystemEntityType'.

โžœ  github-tracker git:(master) dart repo-stars.dart
Unhandled exception:
NoSuchMethodError: No static getter 'file' declared in class 'FileSystemEntityType'.
Receiver: Type: class 'FileSystemEntityType'
Tried calling: file
#0      NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:196)
#1      cacheMissingOrInvalidated (file:///Users/junger/dropbox/dev/github-tracker/repo-stars.dart:103:68)
#2      main (file:///Users/junger/dropbox/dev/github-tracker/repo-stars.dart:92:32)
<asynchronous suspension>
#3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:263)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)

Does this need to be FileSystemEntityType.FILE ?

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.