Giter VIP home page Giter VIP logo

sprint_statistics's Introduction

sprint_statistics

These rb files were created to capture statistics for use during sprint reviews and to collect information for creating changelogs for individual repositories. prs_per_repo.rb and closed_issues.rb generate csv files with the output.

Setup

  • On the github UI, go to your settings page, select "Personal access tokens", Generate a new token, give it a name, no scopes are required, save, copy the token id
  • Clone the repo
  • Edit closed_issues.rb or prs_per_repo.rb, paste your token ID & change the milestone ID if necessary bundle install

(If you're only interested in the prs_per_repo on a couple repos, you can add an additional section in the config.yaml for included_repos and change the repos_to_track method inside of merged_prs_per_sprint.rb to only use those repos.)

Usage

$ bundle exec ruby closed_issues.rb

Milestone Statistics for: Sprint 42 Ending June 20, 2016
NUMBER,AUTHOR,ASSIGNEE,LABELS
--------------------------------------------------
12345,bdunne,chessbyte,providers/ansible_tower refactoring ui
$ bundle exec ruby prs_per_repo.rb
...
Collecting pull_requests for: ManageIQ/manageiq-automation_engine
  Closed/Unmerged: ["https://github.com/ManageIQ/manageiq-automation_engine/pull/57", "https://github.com/ManageIQ/manageiq-automation_engine/pull/53", "https://github.com/ManageIQ/manageiq-automation_engine/pull/27"]
  Closed/Merged: ["https://github.com/ManageIQ/manageiq-automation_engine/pull/61"]
  Closed/Merged Labels: {"bug"=>1, "euwe/backported"=>1, "fine/backported"=>1}
Collecting pull_requests for: ManageIQ/manageiq-content
  ERROR: https://github.com/ManageIQ/manageiq-content/pull/138 is missing a Milestone!!!
  Closed/Unmerged: []
  Closed/Merged: ["https://github.com/ManageIQ/manageiq-content/pull/169", "https://github.com/ManageIQ/manageiq-content/pull/168", "https://github.com/ManageIQ/manageiq-content/pull/167", "https://github.com/ManageIQ/manageiq-content/pull/166", "https://github.com/ManageIQ/manageiq-content/pull/162", "https://github.com/ManageIQ/manageiq-content/pull/138"]
  Closed/Merged Labels: {"enhancement"=>2, "fine/backported"=>3, "bug"=>2, "test"=>1, "documentation"=>1, "services"=>1, "euwe/backported"=>1}
Collecting pull_requests for: ManageIQ/manageiq-design
  Closed/Unmerged: []
  Closed/Merged: []
  Closed/Merged Labels: {}
...

$ cat prs_per_repo.csv
Pull Requests from: 2017-08-08 00:00:00 UTC to: 2017-08-22 00:00:00 UTC.  repo,#opened,#merged,closed_bug,closed_enhancement,closed_developer,closed_documentation,closed_performance,closed_refactoring,closed_technical debt,closed_test,#remaining_open
Ansible/ansible_tower_client_ruby,1,1,1,1,0,0,0,0,0,0,2
ManageIQ/FireBreath,0,0,0,0,0,0,0,0,0,0,0
ManageIQ/WinRM,1,0,0,0,0,0,0,0,0,0,1
ManageIQ/actionwebservice,1,0,0,0,0,0,0,0,0,0,1
ManageIQ/active_bugzilla,0,0,0,0,0,0,0,0,0,0,1
ManageIQ/activerecord-id_regions,0,0,0,0,0,0,0,0,0,0,0
...

sprint_statistics's People

Contributors

bdunne avatar chessbyte avatar d-m-u avatar fryguy avatar gmcculloug avatar jprause avatar jrafanie avatar jvlcek avatar kbrock avatar mend-bolt-for-github[bot] avatar mfeifer avatar

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.