This is a Plugin for one-way integration between GitHub & Redmine. This plugin has a scheduled task that can run at a customizable interval to fetch all projects & issues from a GitHub account and save them in Redmine.
- Syncs GitHub projects with Redmine projects
- Syncs GitHub issues in each project with Redmine issues in the corresponding project
- Syncs GitHub issue comments with Redmine issue notes
- Syncs GitHub issue assignee with Redmine issue assignee
This plugin requires Redmine 5.0.0 or higher. The previous versions of Redmine are not supported. The plugin is tested with Redmine 5.1.1, but it should work with any Redmine version that uses Rails 6.x or higher.
The personal access token must be created from Github Developer Settings.
The following permissions are required:
Issues - Access: Read-Only
- to read issuesMetadata - Access: Read-Only
- Mandatory in order to be able to read Issues
Projects - Access: Read-Only
- to read projects
- Install the plugin
- Clone the plugin source code into
plugins/github_integration
- git clone
https://github.com/techhive-solutions/redmine-github-integration
plugins/github_integration
- Or download the source code and extract it into
plugins/github_integration
- git clone
- Install the dependencies
bundle install
- Migrate the database
bundle exec rake redmine:plugins:migrate
- Clone the plugin source code into
- Restart Redmine
- Go to
Administration > Plugins > GitHub Integration plugin > Configure
- Enter the GitHub credentials:
- Enter the GitHub organization name
- Enter the GitHub personal access token, created as per the Credentials section
- Click
Apply
to save the settings
The rake task can be run as follows:
RAILS_ENV=production bundle exec rake github:sync
You can schedule the rake task to run at a specific interval using crontab. Add the following line to your crontab:
0 * * * * cd /path/to/redmine && RAILS_ENV=production bundle exec rake github:sync
This runs the rake task every hour at the beginning of the hour.