Giter Site home page Giter Site logo

source-integration-fixes's Introduction

Mantis Source Integration

Copyright (c) 2008 - 2012 John Reese - http://noswap.com
Copyright (c) 2012 - 2014 MantisBT Team - [email protected]

Released under the MIT license

Description

The Source plugin provides a flexible framework for fully integrating any sort of Version Control System (VCS) with Mantis, including support for multiple repositories, changesets or revisions, and file path tracking. It has many features already, such as importing repository history and optional support for remote check-ins or imports, and utilizes a class-based API to access objects in the database.

Initial support is included for Subversion and Git repositories using the following extension plugins:

  • SourceBitBucket: Git repositories hosted on BitBucket.
  • SourceCgit: Git repositories accessible via a cgit web frontend installation.
  • SourceGithub: Git repositories hosted on GitHub.
  • SourceGitlab: Git repositories hosted on GitLab.
  • SourceGitweb: Git repositories accessible via a GitWeb web frontend installation.
  • SourceHgWeb: Mercurial repositories accessible via a HgWeb frontend installation.
  • SourceSFSVN: SVN repositories hosted on SourceForge.
  • SourceSVN: SVN repositories locally accessible by the SVN binaries.
  • SourceWebSVN: SVN repositories accessible via a WebSVN web frontend installation.

Support for more source control tools should be rather straightforward to implement due to the flexibility inherent in the integration framework and API.

Requirements

The Source Integration framework requires Mantis version 1.2.0 or higher.

The SourceGithub plugin requires Mantis 1.2.16. This is due to a new requirement in GitHub API v3 (User Agent header is mandatory for all API requests) enforced as of 2013-04-24.

Installation

  1. Download or clone a copy of the Source Integration source code.

  2. Copy the primary Source plugin (the Source/ directory) into your Mantis installation's plugins/ directory.

  3. Copy all the remaining plugins, or just the appropriate ones for your repositories, into your Mantis installation's plugins/ directory.

  4. While logged into your Mantis installation as an administrator, go to 'Manage' -> "Manage Plugins".

  5. In the "Available Plugins" list, you'll find the "Source Control Integration" and additional plugins:

    a. First, click the "Install" link for the "Source Control Integration" plugin.

    b. Next, click the "Install" link next to any additional Source Control plugins appropriate for your repositories.

  6. Click on the "Source Control Integration" plugin to configure it.

    NOTE: an API Key must be set up to import changesets via shell. To generate a random key, run

     openssl rand -hex 12
    
  7. Go to "Repositories" and enter your repository name, select the repository type, and click "Create Repository" to begin adding your first repository.

  8. Configure the repository, following the specific documentation for the relevant plugin extension:

  9. Once configured, click the "Return to Repository" link and click either the "Import Everything" or "Import Newest Data" button to perform initial import of repository changesets and verify configuration.

  10. Once satisfied that your repository is configured & working correctly, you can automate the import of new changesets by configuring a cron job on the web server where your Mantis installation resides, as follows:

    a. import via curl (could run into timeouts on large repositories, or block your webserver)

     curl "http://host.domain.tld/mantisbt/plugin.php?page=Source/import&id=all"
    

    b. import via shell

     php-cgi -f plugin.php page=Source/import id=all api_key=<YOUR_API_KEY>
    

    This will import new changesets for all configured repositories.

  11. Add additional repositories as needed.

Support

Problems or questions dealing with use and installation should be directed to the MantisBT IRC channel #mantisbt on freenode:

irc://freenode.net/mantisbt

Bug reports or fixes are highly encouraged, and should be directed to the bug tracker on GitHub:

http://github.com/mantisbt-plugins/source-integration/issues

The latest source code can be found on GitHub:

http://github.com/mantisbt-plugins/source-integration

Original project and documentation can be found on noswap.com:

http://noswap.com/projects/source-integration/

source-integration-fixes's People

Contributors

01-scripts avatar amyreese avatar ashumkin avatar asm89 avatar blasio avatar bright-tools avatar ckhalilo avatar comargo avatar davidhicks avatar dregad avatar dtamajon avatar jeckyhl avatar jonmarkgo avatar kirill avatar lavoiesl avatar lazar2606 avatar libregeek avatar mahnd avatar morgant avatar obones avatar philippbeckmann avatar philippschaefer avatar rattkin avatar rodrigofarias77 avatar roman-1983 avatar santigimeno avatar slankes avatar srombauts avatar sukima avatar thinkl33t avatar

Watchers

 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.