Giter VIP home page Giter VIP logo

enforcegitpolicy's Introduction

Finding percentage distribution of commits say Defects/Bug Fixes Vs. Feature Development Vs. Other Changes

Assumptions/Preconditions -

Your have already defined your git commit message policies with git server hooks

e.g.

For Defects your git commit message should be like -

DE[defectid] - "[description of the fix applied]"

DE1234 - "Fixed null pointer exception"

For Features your git commit message should be like -

US[userstoryid] - "[description of the feature added]"

US1234 - "Added an ability to add an item to shopping cart"

For any other changes in codebase define some custom rule

SCMActivity - "[description of the change done]"

SCMActivity - "Updated pom.xml"

Usage

Put minecommitdata.sh script in your root git repository root folder

$ cd in to your git repository root

$ sh minecommitdata.sh

Sample output

Stats for <your respository name> repository
Commits for Defects=4
Commits for Feature Development=213
Commits for SCM Activity=7
Total commits on master branch=224
***************************************************************
Commit percentage distribution
Commits for Defects=1.78%
Commits for Feature Development=95.08%
Commits for SCM Activity=3.12%

enforcegitpolicy's People

Contributors

darshandeshmukh11 avatar

Watchers

James Cloos avatar  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.