Git Product home page Git Product logo

github-contrib-stats's People

Contributors

bruceauyeung avatar xialonglee avatar yshnb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

github-contrib-stats's Issues

[FR] add stackalytics deviation

http://stackalytics.com also do statistics analysis about Commits in Kubernetes. but stackalytics count commits incorrectly(most of time more than actual value).
we should add a config stackalyticsDeviation for each user , then we can render a table view of stackalytics version(incorrect version)

rate limit error

error: GET https://api.github.com/search/issues?page=1&per_page=100&q=beeb65b4eafc2bf78349aaf1035401be24b87f5f+repo%3Akubernetes%2Fkubernetes.github.io+type%3Ap
r+author%3Axiangpengzhao: 403 API rate limit exceeded for bruceauyeung.; rate reset in -21.3340042s
error: GET https://api.github.com/search/issues?page=1&per_page=100&q=beeb65b4eafc2bf78349aaf1035401be24b87f5f+repo%3Akubernetes%2Fkubernetes.github.io+type%3Ap
r+author%3Axiangpengzhao: 403 API rate limit exceeded for bruceauyeung.; rate reset in -21.6160042s
error: GET https://api.github.com/search/issues?page=1&per_page=100&q=facd9bcce7aa046b3dd6baa326ba292fedf9b7b3+repo%3Akubernetes%2Fkubernetes.github.io+type%3Ap
r+author%3AYuPengZTE: 403 API rate limit exceeded for bruceauyeung.; rate reset in -23.5020042s

a bug when import codes from original repo to another

there is a bug waiting for fixed

if a man import some codes from one repository to another, like this pr:
kubernetes/community /pull/118 ( i don't want make a link points to that pr , it will notice the participants in that pr )
the pr imported some docs form repo kubernetes/kubernetes to repo kubernetes/community with commit logs
so a person who commit in repo kubernetes/kubernetes now will have a copy in kubernetes/community too(but different SHA, i.e. you have tow commits are totally same but different SHA in two repos). in this case , the author and the committer of these two commits are same, so here comes the problem.
the scheme that we find a pr form a commit is that :

  1. seaching a pr from commit's SHA with repos and author name specified , if not found , it may be the case that the committer and the author are not the same, go step 2
  2. seaching a pr from commit's SHA, but now change author name to committer .
    but according this scheme can not pr in the situation i mention above, so i think we should add a step 3 that do not specified the author arg

i also doubt whether it is reduntant that specified author arg when searching pr. may be specified repos arg is enough. if returns many, we could filter them by author's name.

@bruceauyeung

should add retry mechanism when http request fails

panic: Get https://api.github.com/repos/kubernetes/test-infra/commits?author=StudyNick&per_page=100: net/http: TLS handshake timeout

goroutine 1 [running]:
panic(0x672940, 0xc047f83260)
D:/Go/src/runtime/panic.go:500 +0x1af
/d/GOPATH/INTERNAL/src/github.com/bruceauyeung/github-contrib-stats/githubstat.getStackalyticsCommits(0xc0420e0ea0, 0xc0422d0100, 0xa, 0xc0422d00d0, 0xa, 0xc0
42039f60, 0x9, 0x0, 0x0, 0x0)
d:/GOPATH/INTERNAL/src/github.com/bruceauyeung/github-contrib-stats/githubstat/metrics_commit_request.go:129 +0x598
/d/GOPATH/INTERNAL/src/github.com/bruceauyeung/github-contrib-stats/githubstat.(*PullRequestMetricsRequest).FetchMetrics(0xc042064058, 0xc0420e8780, 0x0)
d:/GOPATH/INTERNAL/src/github.com/bruceauyeung/github-contrib-stats/githubstat/metrics_pull_request.go:486 +0x5f3
main.main()
d:/GOPATH/INTERNAL/src/github.com/bruceauyeung/github-contrib-stats/main.go:50 +0x418
exit status 2

[FR] render progress bar while doing statistics

listing pull requests takes lots of time. we should consider adding progress bar while doing statistics.
considering that we have a config statBeginTime to avoid listing all pull requests, we can not design a progress bar at pull request page level. but we can design it at pull request level.
a rough thought:

( ( number of  finished open pull requests ) + ( number of  finished closed pull requests ) ) / ( ( number of  total open pull requests ) + ( number of  total closed pull requests ) )

( ( number of total open pull requests ) + ( number of total closed pull requests ) ) actually is number of repositories * 2

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.