jenkinsci/ghprb-plugin — pull request #64 by pascalw (2014-12-01 22:54:14+00:00)
Title: Don't trigger PR builds when the project is disabled

Currently when the Jenkins project containing the Github Pull Request builder is disabled this plugin will keep on trying to build Pull Requests. This is IMO unexpected behaviour.

This PR fixes that by explicitly checking if the project is enabled before triggering a build. I've added some test cases but granted they're not as good as they could be since it requires a whole lot of stubbing to get the tests going. I wanted to add an integration test but unfortunately it seems that all existing integration tests are broken.