A pull request watcher written in Scala.
The watcher listens on a RabbitMQ queue for messages that contain event ids of pull request events. For each event the owner and repository info is fetched from a MongoDB database. If the server contains a local clone of the repository, the pull requests are prioritized using the analyzer.
Please note that the watcher is specifically written for the GHTorrent project.
- Clone the project into
~/watcher
- 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. path to output:
~/json/
- e.g. path to repositories:
~/repos/
- e.g. path to analyzer:
~/analyzer/run $owner $repository $dir
- Package the project into a
.jar
file withsbt assembly
- To run in the foreground:
./run
- To run in the background:
./prioritizer start
- To attach to the background process:
./prioritizer attach
- To stop the background process:
./prioritizer stop