プロジェクト

全般

プロフィール

Vote #79196

未完了

Commit messages referencing issues should stop at line breaks

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
33
issue_org_id:
28322
author_id:
14446
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

When referencing an issue via commit message, the matching should stop at line breaks. Otherwise, unexpected things may happen.

E.g given the following commit message:

Initial version of Feature #123

Includes the following changes:

#124 some UI fixes
#125 still work in progress

the current implementation will mark @#125@ as fixed. I think, this is unexpected.

I've attached a patch, which replaces all @\s@ with @:blank:@ in the relevant regular expressions. Those matchers are equivalent, but @:blank:@ does not match @\r\n@. I've also added a test.

This bug was identified by Holger Just from Planio.


journals

--------------------------------------------------------------------------------
Thank you for detecting and fixing this issue, it looks good to me.

But I am afraid that some people make use of the current behavior, like the following example.

<pre>
Refs:
#1, #2, #3
</pre>
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョンCandidate for next minor release_33 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0