Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub: Performance Report #53

Closed
dm03514 opened this issue Dec 10, 2019 · 3 comments
Closed

GitHub: Performance Report #53

dm03514 opened this issue Dec 10, 2019 · 3 comments

Comments

@dm03514
Copy link
Collaborator

dm03514 commented Dec 10, 2019

It would be really cool to generate a GitHub performance report which details time spent in Pull Requests, and issues for a given repo.

  • Rate of issues closed
  • Duration of issues closed by label
  • Pull Requests Rate Open / Closed
  • Pull Request duration
dm03514 added a commit that referenced this issue Jan 18, 2020
@dm03514
Copy link
Collaborator Author

dm03514 commented Jan 18, 2020

Github Pull Request Report

  • Retrieve raw Pull Request Data:
$ go run cmd/vsperformancereport/main.go github -org=ImpactInsights -repo=valuestream -access-token="" -max-page=2 > ~/Documents/eng_m
etrics/impactinsights.csv
  • Generate aggregate report (by week)
$ go run cmd/vsperformancereport/main.go agg -in ~/Documents/eng_metrics/impactinsights.csv pull-request

Key,Interval,Owner,Repo,TotalPullRequests,NumMerged,MergeRatio,AvgTotalLinesChanged,AvgDuration,P95Duration,AvgDurationLine,AvgDurationComment
2019|47_ImpactInsights|valuestream,2019|47,ImpactInsights,valuestream,4,3,0.75,1914.5,42855,0,45.7183848121807,0
2019|46_ImpactInsights|valuestream,2019|46,ImpactInsights,valuestream,3,3,1,212.33333333333334,1518.6666666666667,0,20.710602136850614,0
2019|45_ImpactInsights|valuestream,2019|45,ImpactInsights,valuestream,1,1,1,990,12896,0,0.07676799007444168,0
2019|44_ImpactInsights|valuestream,2019|44,ImpactInsights,valuestream,2,2,1,650,6045,0,0.10508914743090743,0
2019|50_ImpactInsights|valuestream,2019|50,ImpactInsights,valuestream,1,1,1,665,8565,0,0.07764156450671336,0.0002335084646818447
2019|49_ImpactInsights|valuestream,2019|49,ImpactInsights,valuestream,2,2,1,220,251010,0,0.5457733277063436,0.004546450739991414
2019|33_ImpactInsights|valuestream,2019|33,ImpactInsights,valuestream,1,1,1,22,14,0,1.5714285714285714,0
2019|32_ImpactInsights|valuestream,2019|32,ImpactInsights,valuestream,4,4,1,95.75,10717.25,0,1.534402390117196,0
2020|1_ImpactInsights|valuestream,2020|1,ImpactInsights,valuestream,3,2,0.67,84.66666666666667,3675.3333333333335,0,0.049723958097649984,0.00022528174109838546
2019|43_ImpactInsights|valuestream,2019|43,ImpactInsights,valuestream,1,1,1,767,198258,0,0.0038686963451663994,0

@dm03514
Copy link
Collaborator Author

dm03514 commented Jan 19, 2020

Screen Shot 2020-01-19 at 8 55 31 AM

----

Screen Shot 2020-01-19 at 8 58 43 AM

dm03514 added a commit that referenced this issue Jan 19, 2020
* Github: Pull Request Report

refs #53

* PerfReport: Pull Requests calculate avg lines changed

* PerfReport: Github Pull Requests
dm03514 added a commit that referenced this issue Apr 1, 2020
* Github: Pull Request Report

refs #53

* PerfReport: Pull Requests calculate avg lines changed

* PerfReport: Github Pull Requests
@dm03514 dm03514 closed this as completed Jun 2, 2020
@ascipio
Copy link

ascipio commented Oct 30, 2020

Hi @dm03514 , thanks for great analysis tool. How to change this command for local repositories? "go run cmd/vsperformancereport/main.go github -org=ImpactInsights -repo=valuestream -access-token="" -max-page=2 > ~/Documents/eng_metrics/impactinsights.csv"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants