PR Analyser is responsible for analyzing pull requests, comments, and reviews to generate user statistics.
Ensure the following stack is installed:
- Java 21
- Maven 3.9.9
- 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
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"