Skip to content

Instantly share code, notes, and snippets.

@ramonornela
Created December 16, 2011 20:29
Show Gist options
  • Save ramonornela/1487835 to your computer and use it in GitHub Desktop.
Save ramonornela/1487835 to your computer and use it in GitHub Desktop.
Mantis svn
#
# Account to be used by the source control script. The account must be enabled
# and must have the appropriate access level to add notes to all issues even
# private ones (DEVELOPER access recommended).
$g_source_control_account = 'svn';
# For open source projects it is expected that the notes be public VS_PUBLIC, however,
# for non-open source it will probably be VS_PRIVATE.
$g_source_control_notes_view_status = VS_PRIVATE;
# Regular expression used to detect issue ids within checkin comments.
# see preg_match_all() documentation at (detect bug or issue in comment)
$g_source_control_regexp = '/\b(?:bug|issue)\s*[#]{0,1}(\d+)\b/i';
# If set to a status, then after a checkin with a log message that matches the regular expression in
# $g_source_control_fixed_regexp, the issue status is set to the specified status.
# If set to OFF, the issue status is not changed. Use CLOSED if you prefer.
$g_source_control_set_status_to = RESOLVED;
# Whenever an issue status is set to $g_source_control_set_status_to, the issue resolution
# is set to the value specified for this configuration.
$g_source_control_set_resolution_to = FIXED;
# Regular expression used to detect the fact that an issue is fixed and extracts
# its issue id. If there is a match to this regular expression, then the issue
# will be marked as resolved and the resolution will be set to fixed.
$g_source_control_fixed_regexp = '/\bfix(?:ed|es)\s+(?:bug|issue)?\s*[#]{0,1}(\d+)\b/i';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment