koppen/redmine_github_hook — pull request #57 by tofi86 (2014-07-02 21:32:54+00:00)
Title: Feature / update repo from payload 

This is an attempt to solve #54 *("long processing for POST payload from github")*

As I don't know any rails unit testing this pull request unfortunately comes without any additional tests. Maybe you can have a look...

However, I tested on Redmine installation and it works well!

The new behavior is as follows:
* if there is a repository in the current project which matches the GitHub repo name in GitHub payload, then only this repo get's updated by the plugin
* if not, all repositories in the current project get updated. That's the current behaviour which leads to long processing times when having multiple repos in one redmine project.

----

*this is the first ruby script I write/edit after an lynda.com online course, so any help or tips are very much appreciated!* :smile: