プロジェクト

全般

プロフィール

Vote #80738

未完了

Detect plain diffs in e-mail submitted issues and map to attachments

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

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

説明

Diffs sent as plain/text message (as with git format-patch + git send-email) in
issues tend to be textilized, which messes up the display. Also, the original
patch file is not easily downloadable for processing.

With this patch, when a diff file is detected in a plain text message without
attachment, the whole e-mail message is converted into a proper attachment
(that is suitable for git am) and only the diff comment is stored in the
issue description.

The diff detection is based on the following heuristics:

  • body contains three consecutive lines starting with "---", "+++" and "@@"
  • and body contains a line starting with "---", "diff -" or "Index: "

The message body is split before this detected separator.


journals

--------------------------------------------------------------------------------

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

  • カテゴリEmail receiving_29 にセット

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

いいね!0
いいね!0