Project

General

Profile

Actions

Defect #9117

open

Changesets link to issues even without the keyword prefix

Added by Andrew Betts over 13 years ago. Updated over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-08-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

In settings, it is possible to configure a keyword that must be prefixed to #number in order to link the changeset to a redmine issue. However, redmine appears to ignore this and links the changeset to any issues that match numbers prefixed with hashes in the text of the comment.

For example, if I wrote in a commit message:

"Removed the text '#4' from this page (redmine #5)"

This will get associated (correctly) with issue 5, and incorrectly with issue 4, which it has nothing to do with. I have found a fix for the association, which is to remove the question mark following the second capturing subgroup on line 117 of app/models/changeset.rb. This makes the keyword mandatory in the scan_comment_for_issue_ids method. However, I can't figure out how to prevent the #4 from becoming a link to issue 4 in the revision history page. This seems to be a very low level thing, and I'm afraid I am not a rails developer so the trail went cold on that one.


Files

Screen_Shot_2011-08-24_at_17.53.22.png (33.1 KB) Screen_Shot_2011-08-24_at_17.53.22.png Screenshot of repo config for test case Andrew Betts, 2011-08-24 18:54
Actions

Also available in: Atom PDF