Files changed (1)
+This plugin allows you to update your local Git repositories in Redmine when changes have been pushed to Github.
+Redmine has supported Git repositories for a long time, allowing you to browse your code and view your changesets directly in Redmine. For this purpose, Redmine relies on local clones of the Git repositories.
+If your shared repository is on a remote machine - for example on Github - this unfortunately means a bit of legwork to keep the local, Redmine-accessible repository up-to-date. The common approach is to set up a cronjob that pulls in any changes with regular intervals and updates Redmine with them.
+That approach works perfectly fine, but is a bit heavy-handed and cumbersome. The Redmine Github Hook plugin allows Github to notify your Redmine installation when changes have been pushed to a repository, triggering an update of your local repository and Redmine data only when it is actually necessary.
+ 4. If you already have a local Git repository set up and working from Redmine go to step 3, otherwise continue at step 2.
+2. Adding a Git repository to a project (note, this should works wether you want to use Redmine Github Hook or not)
+ 1. Go to the directory on your Redmine machine where you want to keep your repository, for example /home/redmine/repositories/.
+ 2. Get a clone of the repository into that location: git clone git://github.com/koppen/redmine_github_hook.git. This creates a .git directory at /home/redmine/repositories/redmine_github_hook/.git
+ 3. Open Redmine in your browser and navigate to the Settings for the project you want to add a Git repository to.
+ 4. Under the Repository tab, choose Git as your SCM and enter the full path to the .git directory from step 2; /home/redmine/repositories/redmine_github_hook/.git . Click "Create".
+ 5. Click the new "Repository" link in the main navigation to verify that your repository integration works.
+ 2. Under "Service Hooks" add a new "Post-Receive URL" of the format: "[redmine_installation_url]/github_hook" (for example "http://example.com/github_hook").
+That's it. Github will now send a HTTP POST to the Redmine Github Hook plugin whenever changes are pushed to Github. The plugin then takes care of pulling the changes to the local repository and updating the Redmine database with them.