GithubHelp home page GithubHelp logo

commit-insights's Introduction

Commit-Insights

Commit-Insights is a tool that provides insights into your codebase by analyzing Git commit history and harnessing data. It's designed to work as a plugin in your CI/CD pipeline.

Features

  • Gather commit history between two Git SHAs
  • Extract and process commit metadata
  • Extract file change information from each commit
  • Output data in a structured format for further analysis

Requirements

  • Go 1.16+
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/diegopereiraeng/commit-insights.git
  2. Navigate to the project directory

    cd commit-insights

Run Locally

  1. Download the Go modules required for the project.

    go mod download
  2. Build the project to generate the binary.

    go build -o commit-insights

Sample Example

You can run the tool using the following command as an example:

./commit-insights --acc_id=<YOUR_ACCOUNT_ID> --orgID=default --projectID=GIT_FLOW_DEMO --pipelineID=Plugin_Factory --stageID=Build_Golang --statusList=Success --repoName=commit-insights --branch=main --buildType=branch --ingestionType=pipeline --harness_secret=<YOUR_HARNESS_READ_TOKEN>

Usage in Pipeline

Here is a sample example of how you can use the Commit-Insights in a pipeline:

```yaml

  • step: type: Plugin name: Commit-Insights identifier: CommitInsights spec: connectorRef: account.DockerHubDiego image: diegokoala/commit-insights:latest settings: harness_secret: <+secrets.getValue("harnesssatokenplugin")> imagePullPolicy: Always ```

Contributing

  1. Fork the project
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

commit-insights's People

Contributors

diegopereiraeng avatar

Watchers

 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.