MantisBT

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012569mantisbtintegrationpublic2010-11-29 14:582010-12-22 23:49
Reporterchlarose 
Assigned To 
PrioritynoneSeverityfeatureReproducibilityN/A
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.2.3 
Target VersionFixed in Version 
Summary0012569: Integration of GoogleCode Post-Commit Web Hook
DescriptionHello,

in the attachments, you will find a piece of code which allows integration of the GoogleCode Post-Commit Hook. It works in the same way the checkin.php except that it must be reachable from Google's servers (instead of pure command line launch).

It is useful for one of our projects where the code is hosted by Google Code but the bugtracker is a home-hosted MantisBT.

I upload it here in case it interests anyone. Reviews welcomed.

(Work sponsored by Ideia.fr)
Additional InformationSmall summary of how to make it work :

- place this file under the scripts/ directory,

- you must add in your config the Mantis account which will be used, the regexp to detect the issue the commit talks about, and finally the "GoogleCode PostCommit Auth. Key" (which you may find under admin>source) :

 $g_source_control_account = 'svn_mantis-robot'; // this account must exist
 $g_source_control_regexp = '/\bissue [#]{0,1}(\d+)\b/i';
 $g_source_control_fixed_regexp = '/\bfix [#]{0,1}(\d+)\b/i';
 $g_source_control_googlecode_secretkey = array(
  'gc_project_name' => 'dont forget me!',
  'gc_project_name_2' => 'facultatif',
  );

- you must also configure your GoogleCode PostCommit URL
  For example : http://mantis.your-domain.net/scripts/checkin_googlecode.php [^]

If everything is okay, you should see comments added to every issues mentionned in the commit log (only for future commits of course ;)
TagsNo tags attached.
Attached Files? file icon checkin_googlecode.php [^] (6,601 bytes) 2010-11-29 14:58 [Show Content]

- Relationships

-  Notes
User avatar (0027680)
rerbin (reporter)
2010-12-22 23:49

thank you

- Issue History
Date Modified Username Field Change
2010-11-29 14:58 chlarose New Issue
2010-11-29 14:58 chlarose File Added: checkin_googlecode.php
2010-12-22 23:49 rerbin Note Added: 0027680


MantisBT 1.2.17 [^]
Copyright © 2000 - 2014 MantisBT Team
Time: 0.0650 seconds.
memory usage: 3,012 KB
Powered by Mantis Bugtracker