Giter VIP home page Giter VIP logo

redmine_git_mirror's Introduction

Redmine Git Mirror plugin Build Status

Adds ability to clone and fetch remote git repositories to redmine.

Key Features

  • Easy install (just clone to redmine plugins folder)
  • Webhooks integration (gitlab and custom)
  • Works well with enabled autofetch changesets setting and in mix with other scm types
  • Automatic deletes unreachable commits

Install

cd [redmine-root]/plugins
git clone https://github.com/linniksa/redmine_git_mirror

Restart redmine, and enable Git Mirror scm type at redmine.site/settings?tab=repositories

Accessing private repositories

At this moment only ssh access with redmine user ssh key is supported.

Fetching changes

This plugin supports 2 ways of fetching changes, via cronjob or via hooks. You can use only one or both of them together.

Cronjob

Run ./bin/rails runner "Repository::GitMirror.fetch", for example:

5,20,35,50 * * * * cd /usr/src/redmine && ./bin/rails runner "Repository::GitMirror.fetch"  -e production >> log/cron_rake.log 2>&1

Hooks

Hooks is preferred way because you can immediately see changes of you repository.

GitLab hooks

You can setup per-project or system wide hook, for both variants use redmine.site/sys/git_mirror/gitlab as URL

For system wide setup

Go to gitlab.site/admin/hooks, and select only Repository update events trigger.

For per-project setup

Go to gitlab.site/user/project/settings/integrations, and select only Push and Tags events

GitHub hooks

You can setup per-project or group wide hook, for both variants use redmine.site/sys/git_mirror/github as Payload URL and Just the push event option.

Don't worry about Content type both application/json and application/x-www-form-urlencoded are supported.

redmine_git_mirror's People

Contributors

gbonnefille avatar linniksa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.