A pull request prioritizer written in Scala.
The analyzer is written for the GHTorrent project, however the data collection process is abstracted in a decorator pattern. So, it should not be to hard to implement other data sources.
- Clone the project into
~/analyzer
- Install dependencies and build the project with
sbt compile
- Copy
src/main/resources/settings.properties.dist
tosrc/main/resources/settings.properties
- Configure the application by editing
src/main/resources/settings.properties
- e.g. repository provider:
github
- e.g. commits provider:
ghtorrent
- e.g. requests provider:
github
- e.g. output directory:
~/json/
- e.g. cache directory:
~/tmp/
- e.g. github access token: get your access token.
- e.g. predictor command:
~/predictor/run $action $owner $repository
- e.g. model directory:
~/tmp/
- Ignore the other Github and JGit settings
- Package the project into a
.jar
file withsbt assembly
- Analyze a single repository with
./run [owner] [repo] ~/repos/[owner]/[repo]
- A
.json
file is generated which can be visualized
Use the watcher to continuously run the analyzer for selected projects.