Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Issue Connector Rules and Restrictions

All Named Groups in the Commit Message Regex must have at least 1 matching group in the Issue Server URL

Any named group that is used in the Commit Message Regex MUST also be present in the Issue Server URL. For example, if your regex has the named group <project>, the {project} must be present in the Issue Server URL. For example:

...

 Generated URLhttp://www.issues.com/myawesomeproject/issue/29981


Both the Commit Message Regex and the Issue Server URL MUST include the id group

For example:

Issue Sever URL:  http://www.issues.com/issue/{id}

Commit Message Regex: #(?<id>\d+)


You can have multiple groups in an Issue an Issue Server URL/Commit Message Regex

If you have an issue tracking system that takes in a project as well as an id, then this can be handled by using multiple named groups. For example:

...

Generated URLhttp://www.issues.com/myawesomeproject/issue/29981

 

Named Groups can appear multiple times in the Issue Server URL

Named Groups can only appear in the Commit Message Regex once, however their corresponding group can appear in the Issue Server URL multiple times. For example:

...

Generated URLhttp://myawesomeproject.issues.com/myawesomeproject/issue/29981

 

Using our first example's Issue Connector settings, a commit message "Fixed annoying deadlock bug, solves issues #29981, #44412 and #9881" would generate three links:

...