FishEye 2.3 : Linkers
This page last changed on Jan 31, 2010 by edawson.
When browsing commit messages or comments in FishEye, any issue IDs or Bug IDs that appear will be turned into hyperlinks, allowing you to easily click to see those referenced issues or pages. This capability is due to FishEye's ability to detect special substrings in commit messages, and hyperlink those substrings to other systems. This is particularly useful if you use an issue tracking system, and put the issue identifiers into your commit messages. The 'Linkers' repository option (Administration > Repository Defaults > Linkers, or Administration > View Repository List > View (next to your REPO) > Linkers) allows you to define the substrings and their related URLs. Any linkers defined in the repository defaults are added to each individual repository. Example LinkersHere are some examples of how to create simple linkers. JIRA Examples
Bamboo Examples
Bugzilla Examples
About FishEye Regular ExpressionsFishEye uses the Java regular expression language, which is based on Perl 5 regular expressions. Note: If you want your regex to be case insensitive, put (?i) at the start of the regex. To try out your regular expressions, you can use this online test page. Example: The SyntaxDef FieldThis is an advanced feature, intended for use by experienced developers only.
This example matches numbers that appear after a PR: and might be seperated by commas or 'and': PR: 123 PR: 123 456 PR: 123, 456 PR: 123, 456 and 789 <syntaxdef> /PR:\s*((\d+\s*(and|,)?\s*)+)/i : { nummatcher(${1}); } context nummatcher { /\d+/ : { region { href="http://issues.apache.org/bugzilla/show_bug.cgi?id=${0}"; } } } Understanding the SyntaxDef example
|
![]() |
Document generated by Confluence on Jul 29, 2010 02:16 |