Skip to content

shaydaroglu/pr-analyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PR Analyser

Introduction

Description

PR Analyser is responsible for analyzing pull requests, comments, and reviews to generate user statistics.

Prerequisites

Ensure the following stack is installed:

  • Java 21
  • Maven 3.9.9

Get started

Initial setup & Run (Manual Execution)

  • Git clone this repo and cd into it
  • Run mvn clean install to install the dependencies
  • Run mvn package to build the application
  • Run java -jar target/pr-analyser-1.0.jar -h to get the help message
  • Run java -jar target/pr-analyser-1.0.jar -r pr-analyser -o owner -sd 2025-03-18 -ed 2025-03-18 -t Github_Access_Token

In case mvn uses different java version, you can specify the java version by setting JAVA_HOME environment variable.

export JAVA_HOME=$(/usr/libexec/java_home -v 21)
export PATH=$JAVA_HOME/bin:$PATH

Running the application

For first time usage run the following command to get the help message:

make run

or alternatively

make build
make exec

It will set JAVA_HOME to the correct version and run the application.

Alternatively, you can run the following commands:

make build
make exec ARGS="-r pr-analyser -o owner -sd 2025-03-18 -ed 2025-03-18 -t Github_Access_Token"

Example parameters to run the application:

make exec ARGS="--repository-name pr-analyser --owner owner --start-date 2025-03-16 --end-date 2025-03-18 --access-token Github_Access_Token"
make exec ARGS="-r pr-analyser -o owner -sd 2025-03-18 -ed 2025-03-18 -t Github_Access_Token"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published