Giter VIP home page Giter VIP logo

github-devstats's People

Contributors

jensrantil avatar krlvi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

github-devstats's Issues

Output is not valid JSON

I am interested in working with the output of the tool in jq.

The current output (as defined by https://github.com/krlvi/github-devstats/blob/master//event/pr.go#L40-L44) is 1) not proper JSON and 2) hard to automatically make it proper JSON.

The current output looks like this:

{
    ....
},
{
    ....
},
...
{
    ....
},

Notice how it ends with a semicolon. This can easily be corrected by storing the output to a file and modifying the file using your favourite text editor, however that's annoying. Two outputs that would be parsable by jq:

{
    ....
},
{
    ....
},
...
{
    ....
}

and/or

[
    {
        ....
    },
    {
        ....
    },
    ...
    {
        ....
    }
]

I vote for the former since it allows streaming the output easier.

Nicer error message when no parameters given

$ go run ./cmd/github-devstats
go: downloading golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
go: downloading golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
panic: runtime error: index out of range

goroutine 1 [running]:
main.main()
	/Users/jrantil/src/github-devstats/cmd/github-devstats/main.go:13 +0x3e1
exit status 2

Add CI

...such as Travis CI to make sure PRs don't break stuff.

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.