| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This plugin allows you to update your local Git repositories in Redmine when changes have been pushed to GitHub.
This project is not under active development, although I will continue to provide support for current users, but you can change that by joining the team.
If you use this project and would like to develop it further, please introduce yourself on the maintainers wanted ticket.
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.
Adding a Git repository to a project (note, this should work whether you want to use Redmine GitHub Hook or not).
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 repositories and updating the Redmine database with them.
If you run into issues, your Redmine logfile might have some valuable information. Two things to check for:
The logfile is usually found in your Redmine directory in log/production.log although your webserver logs may contain some additional clues.
As for permissions, whatever user Redmine is running as needs permissions to do the following things:
What user you are running Redmine as depends on your system and how you've setup your Redmine installation.
This means you need to add its SSH keys on GitHub. If the user doesn't already have an SSH key, generate one and add the public SSH key as a Deploy Key for the repository on GitHub (or as one of your own keys, if you prefer that).
The user running Redmine needs permissions to read and write to the local repository on the server.
The interactions between the different parts of the process is outlined in the following sequence diagram:
sequenceDiagram
participant Dev as Development Machine
participant GH as GitHub
participant Rm as Redmine
Dev->>GH: git push
GH->>Rm: POST /github_hook
Rm->>GH: git fetch
GH-->>Rm: commits
Rm->>Rm: Update repository
Distributed under the MIT License. See LICENSE for more information.
| Back | FazBrowse Home | New Git URL |